diff --git a/nac3core/src/codegen/stmt.rs b/nac3core/src/codegen/stmt.rs index af4e3318..df6e823b 100644 --- a/nac3core/src/codegen/stmt.rs +++ b/nac3core/src/codegen/stmt.rs @@ -94,6 +94,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> { // return true if it contains terminator pub fn gen_stmt(&mut self, stmt: &Stmt>) -> bool { match &stmt.node { + StmtKind::Pass => {}, StmtKind::Expr { value } => { self.gen_expr(&value); }