Add missing gen

This commit is contained in:
gingerBill
2025-09-23 01:23:01 +01:00
parent c9eef7c835
commit 2f132b51ce

View File

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