diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-25 12:05:27 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-25 12:05:27 +0100 |
| commit | 1a191b99ac898b3086d367b301ea3e8e527be100 (patch) | |
| tree | f73ad85c9346db62dbacf15182ca235ebb40f042 | |
| parent | a3689f89c2633a5288d52fdec03f40dc7996c28e (diff) | |
Disable some of `lb_construct_const_union` for the time being.
| -rw-r--r-- | src/llvm_backend_const.cpp | 5 |
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); |