diff --git a/compiler/codegen/src/compile.rs b/compiler/codegen/src/compile.rs index 5abec728d5..2e7e5a4ad5 100644 --- a/compiler/codegen/src/compile.rs +++ b/compiler/codegen/src/compile.rs @@ -491,6 +491,10 @@ impl Compiler<'_> { ) -> CompileResult<()> { self.symbol_table_stack.push(symbol_table); + if Self::find_ann(body) { + emit!(self, Instruction::SetupAnnotation); + } + if let Some((last, body)) = body.split_last() { for statement in body { if let Stmt::Expr(StmtExpr { value, .. }) = &statement {