aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-09-25 12:05:27 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-09-25 12:05:27 +0100
commit1a191b99ac898b3086d367b301ea3e8e527be100 (patch)
treef73ad85c9346db62dbacf15182ca235ebb40f042
parenta3689f89c2633a5288d52fdec03f40dc7996c28e (diff)
Disable some of `lb_construct_const_union` for the time being.
-rw-r--r--src/llvm_backend_const.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp
index edcc241dc..39e2024b0 100644
--- a/src/llvm_backend_const.cpp
+++ b/src/llvm_backend_const.cpp
@@ -701,6 +701,11 @@ gb_internal LLVMValueRef lb_construct_const_union(lbModule *m, LLVMValueRef vari
} else if (lb_sizeof(llvm_variant_type) == 0) {
block_value = LLVMConstNull(block_type);
} else if (block_type != llvm_variant_type) {
+ if (true) {
+ // TODO(bill): ignore this for the time being
+ return nullptr;
+ }
+
LLVMTypeKind block_kind = LLVMGetTypeKind(block_type);
LLVMTypeKind variant_kind = LLVMGetTypeKind(llvm_variant_type);