aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_general.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-09-28 21:00:36 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-09-28 21:00:36 +0100
commitf743110f63d7659d0990715311ea64fea056e249 (patch)
treecaaf4fd078b116766b4562e589064b8436a6a65c /src/llvm_backend_general.cpp
parent421bec2d172c49eda369e0106e257e0e508d579f (diff)
Correct union type checking for constants
Diffstat (limited to 'src/llvm_backend_general.cpp')
-rw-r--r--src/llvm_backend_general.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp
index 8e5efcb52..b181788b9 100644
--- a/src/llvm_backend_general.cpp
+++ b/src/llvm_backend_general.cpp
@@ -3256,7 +3256,7 @@ gb_internal lbAddr lb_add_global_generated_with_name(lbModule *m, Type *type, lb
LLVMTypeRef actual_type = lb_type(m, type);
if (value.value != nullptr) {
LLVMTypeRef value_type = LLVMTypeOf(value.value);
- GB_ASSERT(lb_sizeof(actual_type) == lb_sizeof(value_type));
+ GB_ASSERT_MSG(lb_sizeof(actual_type) == lb_sizeof(value_type), "%s vs %s", LLVMPrintTypeToString(actual_type), LLVMPrintTypeToString(value_type));
actual_type = value_type;
}