From 1f2cedcf78907c7cb2d743cc476f11981a06e32b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 29 Sep 2025 09:53:04 +0100 Subject: Remove debug code --- src/llvm_backend_const.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/llvm_backend_const.cpp') diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp index d27b2012b..ebafa488e 100644 --- a/src/llvm_backend_const.cpp +++ b/src/llvm_backend_const.cpp @@ -1503,14 +1503,6 @@ gb_internal lbValue lb_const_value(lbModule *m, Type *type, ExactValue value, lb if (elem_type_can_be_constant(f->type)) { if (sel.index.count == 1) { lbValue value = lb_const_value(m, f->type, tav.value, cc, tav.type); - if (is_type_union(f->type)) { - if (f->token.string == "default_value") { - if (LLVMIsNull(value.value)) { - gb_printf_err("HERE: %s %s\n", type_to_string(f->type), LLVMPrintValueToString(value.value)); - GB_PANIC("GAH"); - } - } - } LLVMTypeRef value_type = LLVMTypeOf(value.value); GB_ASSERT_MSG(lb_sizeof(value_type) == type_size_of(f->type), "%s vs %s", LLVMPrintTypeToString(value_type), type_to_string(f->type)); values[index] = value.value; -- cgit v1.2.3