Begin to generalize modules away from AstPackage * in -use-separate-modules

This commit is contained in:
gingerBill
2023-01-12 17:13:25 +00:00
parent 402a165b60
commit 3b22c6620c
5 changed files with 21 additions and 16 deletions

View File

@@ -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);