From fdaca1b5f3b7b72ed3a661bc52b6463838f366c4 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 13 Jun 2019 20:30:39 -0400 Subject: fix a couple more test regressions --- src/ir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index 84daf645b9..a292f9a79b 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -14845,6 +14845,8 @@ static IrInstruction *ir_resolve_result_raw(IrAnalyze *ira, IrInstruction *suspe } // need to return a result location and don't have one. use a stack allocation IrInstructionAllocaGen *alloca_gen = ir_create_alloca_gen(ira, suspend_source_instr, 0, ""); + if ((err = type_resolve(ira->codegen, value_type, ResolveStatusZeroBitsKnown))) + return ira->codegen->invalid_instruction; alloca_gen->base.value.type = get_pointer_to_type_extra(ira->codegen, value_type, false, false, PtrLenSingle, 0, 0, 0, false); ZigFn *fn_entry = exec_fn_entry(ira->new_irb.exec); -- cgit v1.2.3