aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-09-23 01:23:01 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-09-23 01:23:01 +0100
commit2f132b51ce133cb21986987b38f1d75fa560fa1b (patch)
tree9d260250fb69f9ec53e6b4683ffc2ec861f85800 /src
parentc9eef7c835b46ace09e0e149ef52af44f7ff7f36 (diff)
Add missing `gen`
Diffstat (limited to 'src')
-rw-r--r--src/llvm_backend_general.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp
index 4b2e01c40..3fa7a076e 100644
--- a/src/llvm_backend_general.cpp
+++ b/src/llvm_backend_general.cpp
@@ -221,7 +221,8 @@ gb_internal bool lb_init_generator(lbGenerator *gen, Checker *c) {
if (LLVM_WEAK_MONOMORPHIZATION) {
lbModule *m = gb_alloc_item(permanent_allocator(), lbModule);
gen->equal_module = m;
- m->checker = c;
+ m->gen = gen;
+ m->checker = c;
map_set(&gen->modules, cast(void *)m, m); // point to itself just add it to the list
lb_init_module(m, do_threading);
}