aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-07-13 15:54:56 +0100
committergingerBill <bill@gingerbill.org>2021-07-13 15:54:56 +0100
commited5a4afc8c308c6db12d29d89b70738033ff46ec (patch)
treeae37e745808fcf0ea11f8e344d5256ad865dec8f /src/llvm_backend.cpp
parentf29b51efddcc90c4545119fa77772e4a03e71719 (diff)
Temporarily disable `-threaded-checker`; Restructure the untyped-expr-info system to be much more thread-friendly
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index 95ab55134..d04344c1f 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -6580,6 +6580,7 @@ lbValue lb_const_value(lbModule *m, Type *type, ExactValue value, bool allow_loc
}
LLVMValueRef str_len = LLVMConstInt(lb_type(m, t_int), value.value_string.len, true);
LLVMValueRef values[2] = {ptr, str_len};
+ GB_ASSERT(is_type_string(original_type));
res.value = llvm_const_named_struct(lb_type(m, original_type), values, 2);
}