diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-13 20:30:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-13 20:30:39 -0400 |
| commit | fdaca1b5f3b7b72ed3a661bc52b6463838f366c4 (patch) | |
| tree | 3d35cd29445b20acbaa65a0fdd03165ce15691b7 /src | |
| parent | eaf74f4f96f5a6c864dec9ada47eba067b699881 (diff) | |
| download | zig-fdaca1b5f3b7b72ed3a661bc52b6463838f366c4.tar.gz zig-fdaca1b5f3b7b72ed3a661bc52b6463838f366c4.zip | |
fix a couple more test regressions
Diffstat (limited to 'src')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
