aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/compiler')
-rw-r--r--pkg/compiler/consts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/compiler/consts.go b/pkg/compiler/consts.go
index 3e8773a03..48a4f55aa 100644
--- a/pkg/compiler/consts.go
+++ b/pkg/compiler/consts.go
@@ -69,7 +69,7 @@ func (comp *compiler) extractConsts() map[string]*ConstInfo {
info.defines[name] = v
comp.addConst(infos, pos, name)
case *ast.Call:
- if comp.target.SyscallNumbers && !strings.HasPrefix(n.CallName, "syz_") {
+ if comp.target.HasCallNumber(n.CallName) {
comp.addConst(infos, pos, comp.target.SyscallPrefix+n.CallName)
}
for _, attr := range n.Attrs {