diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-26 09:35:51 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-26 09:35:51 +0100 |
| commit | ed2b79a63e63a8f663d1c1ef67943e921b9ed5cd (patch) | |
| tree | b15c3429c601409d2e2929de73d391ecf30be9d3 /src/llvm_backend_const.cpp | |
| parent | a6d5ec2de85ae446a1b69f6bff16010900db55fe (diff) | |
Completely comment out `lb_construct_const_union`
Diffstat (limited to 'src/llvm_backend_const.cpp')
| -rw-r--r-- | src/llvm_backend_const.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp index efd97121a..69b2f830c 100644 --- a/src/llvm_backend_const.cpp +++ b/src/llvm_backend_const.cpp @@ -633,6 +633,9 @@ gb_internal Slice<LLVMValueRef> lb_construct_const_union_flatten_values(lbModule } gb_internal LLVMValueRef lb_construct_const_union(lbModule *m, LLVMValueRef variant_value, Type *variant_type, Type *union_type) { +#if 1 + return nullptr; +#else 0 Type *bt = base_type(union_type); GB_ASSERT(bt->kind == Type_Union); GB_ASSERT(lb_type(m, variant_type) == LLVMTypeOf(variant_value)); @@ -768,6 +771,7 @@ assign_value_wrapped:; values[i++] = LLVMConstNull(padding_type); } return LLVMConstNamedStruct(llvm_type, values, i); +#endif } gb_internal bool lb_try_construct_const_union(lbModule *m, lbValue *value, Type *variant_type, Type *union_type) { |