aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_proc.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_proc.cpp
parent402a165b60dc9de1ef047b44e47c2d38e5cbed6d (diff)
Begin to generalize modules away from `AstPackage *` in `-use-separate-modules`
Diffstat (limited to 'src/llvm_backend_proc.cpp')
-rw-r--r--src/llvm_backend_proc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp
index fd654cec9..f156d1ca0 100644
--- a/src/llvm_backend_proc.cpp
+++ b/src/llvm_backend_proc.cpp
@@ -74,7 +74,7 @@ gb_internal lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool i
String link_name = {};
if (ignore_body) {
- lbModule *other_module = lb_pkg_module(m->gen, entity->pkg);
+ lbModule *other_module = lb_module_of_entity(m->gen, entity);
link_name = lb_get_entity_name(other_module, entity);
} else {
link_name = lb_get_entity_name(m, entity);