Skip to content

Commit

Permalink
main block cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
f0xeri committed Mar 10, 2024
1 parent 000e342 commit fd03cf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codegen/CodeGen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ namespace Slangc {
for (auto&stmt: moduleAST->block->statements) {
processNode(stmt, codeGenContext, errors);
}
cleanupCurrentScope(codeGenContext, errors);
codeGenContext.endMainFunc();
}
llvm::verifyModule(*codeGenContext.module, &llvm::errs());
Expand Down

0 comments on commit fd03cf4

Please sign in to comment.