mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-04 11:24:37 -04:00
avoid segfault on map resize
This commit is contained in:
1 parent
070b450768
commit
498f68c06b
1 file changed
+2
-1
@@ -1602,8 +1602,9 @@ LLVMTypeRef lb_type_internal(lbModule *m, Type *type) {
|
||||
return llvm_type;
|
||||
}
|
||||
llvm_type = LLVMStructCreateNamed(ctx, name);
|
||||
LLVMTypeRef found_val = *found;
|
||||
map_set(&m->types, type, llvm_type);
|
||||
lb_clone_struct_type(llvm_type, *found);
|
||||
lb_clone_struct_type(llvm_type, found_val);
|
||||
return llvm_type;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user