| ... | @@ -1699,6 +1699,10 @@ static void gen_var_debug_decl(CodeGen *g, ZigVar *var) { | ... | @@ -1699,6 +1699,10 @@ static void gen_var_debug_decl(CodeGen *g, ZigVar *var) { |
| 1699 | } | 1699 | } |
| 1700 | | 1700 | |
| 1701 | static LLVMValueRef ir_llvm_value(CodeGen *g, IrInstruction *instruction) { | 1701 | static LLVMValueRef ir_llvm_value(CodeGen *g, IrInstruction *instruction) { |
| | 1702 | Error err; |
| | 1703 | if ((err = type_resolve(g, instruction->value.type, ResolveStatusZeroBitsKnown))) { |
| | 1704 | codegen_report_errors_and_exit(g); |
| | 1705 | } |
| 1702 | if (!type_has_bits(instruction->value.type)) | 1706 | if (!type_has_bits(instruction->value.type)) |
| 1703 | return nullptr; | 1707 | return nullptr; |
| 1704 | if (!instruction->llvm_value) { | 1708 | if (!instruction->llvm_value) { |