aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-12 17:13:25 +0000
committergingerBill <bill@gingerbill.org>2023-01-12 17:13:25 +0000
commit3b22c6620cea89394ad7a2b80da5f2529a4fae20 (patch)
tree04cc993bb811e0bc5d412dbb14a710bec56bc9d5 /src/llvm_backend.cpp
parent402a165b60dc9de1ef047b44e47c2d38e5cbed6d (diff)
Begin to generalize modules away from `AstPackage *` in `-use-separate-modules`
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index 4c954b58f..f0d51be73 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -1222,7 +1222,7 @@ gb_internal void lb_create_global_procedures_and_types(lbGenerator *gen, Checker
lbModule *m = &gen->default_module;
if (USE_SEPARATE_MODULES) {
- m = lb_pkg_module(gen, e->pkg);
+ m = lb_module_of_entity(gen, e);
}
array_add(&m->global_procedures_and_types_to_create, e);