diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/compiler/compiler.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/compiler/compiler.go b/pkg/compiler/compiler.go index a88e44d70..2291d349e 100644 --- a/pkg/compiler/compiler.go +++ b/pkg/compiler/compiler.go @@ -99,9 +99,6 @@ func Compile(desc *ast.Description, consts map[string]uint64, target *targets.Ta if comp.errors != 0 { return nil } - for _, w := range comp.warnings { - eh(w.pos, w.msg) - } syscalls := comp.genSyscalls() prg := &Prog{ Resources: comp.genResources(), @@ -112,6 +109,9 @@ func Compile(desc *ast.Description, consts map[string]uint64, target *targets.Ta if comp.errors != 0 { return nil } + for _, w := range comp.warnings { + eh(w.pos, w.msg) + } return prg } |
