瀏覽代碼

Disable some of `lb_construct_const_union` for the time being.

gingerBill 2 周之前
父節點
當前提交
1a191b99ac
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/llvm_backend_const.cpp

+ 5 - 0
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);