aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-07-04 23:27:11 +0100
committerGitHub <noreply@github.com>2024-07-04 23:27:11 +0100
commitc77f5b00bc76f2cac15a3c910f6970815f1507b0 (patch)
tree3b5cb0c7ed2594ca87861e453fea1d469673f747 /src
parent3c2161b19695d5eb21375854996a67f71d0de5c2 (diff)
parent1bd9fe04c4baf9fba32a38b94d564f0253b320d1 (diff)
Merge pull request #3872 from laytan/fix-assertion-failure-on-old-llvm
Fix assertion false negative
Diffstat (limited to 'src')
-rw-r--r--src/llvm_backend_const.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp
index 81fe624ff..9cc0552de 100644
--- a/src/llvm_backend_const.cpp
+++ b/src/llvm_backend_const.cpp
@@ -176,7 +176,6 @@ gb_internal LLVMValueRef llvm_const_named_struct_internal(LLVMTypeRef t, LLVMVal
for (unsigned i = 0; i < elem_count; i++) {
LLVMTypeRef elem_type = LLVMStructGetTypeAtIndex(t, i);
values[i] = llvm_const_cast(values[i], elem_type);
- GB_ASSERT_MSG(elem_type == LLVMTypeOf(values[i]), "%s != %s", LLVMPrintTypeToString(LLVMTypeOf(values[i])), LLVMPrintTypeToString(elem_type));
}
return LLVMConstNamedStruct(t, values, value_count);
}