aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/backends/llvm/codegen/LlvmPatioCodeGen.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/shedlang/compiler/backends/llvm/codegen/LlvmPatioCodeGen.java b/src/main/java/org/shedlang/compiler/backends/llvm/codegen/LlvmPatioCodeGen.java
index 730169e5..cac25645 100644
--- a/src/main/java/org/shedlang/compiler/backends/llvm/codegen/LlvmPatioCodeGen.java
+++ b/src/main/java/org/shedlang/compiler/backends/llvm/codegen/LlvmPatioCodeGen.java
@@ -80,7 +80,7 @@ public class LlvmPatioCodeGen {
PatioCompilationUnit patioCompilationUnit,
LlvmPatioCodeGenGlobalContext globalContext
) {
- var context = LlvmPatioCodeGenModuleContext.EMPTY
+ var context = globalContext.enterModule()
.addTopLevelEntity(ALLOC_DECLARATION)
.addTopLevelEntity(SETJMP_DECLARATION)
.addTopLevelEntity(EXCEPTION_HANDLER_DECLARATION)