aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-01-26 23:31:53 +0000
committergingerBill <bill@gingerbill.org>2022-01-26 23:31:53 +0000
commit5808793cae73e331ac996ffb48f52e58c45b8d09 (patch)
tree6b3ab35376f23ef5a9a35d2b528ae76049cb71db /src
parent7e11f3cc4bd888ab57beedd94952a5ead8888d2e (diff)
parent714ab516c57ca59e66980b139192c94eb9e344e8 (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
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 998dce88f..2fc21b534 100644
--- a/src/llvm_backend_general.cpp
+++ b/src/llvm_backend_general.cpp
@@ -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;
}
}