authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-26 15:43:39-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-26 15:43:39-04:00
logca145a6d5a430cd87d0b242fb7453e8249221cd0
treeb59980f343420c5efaa3ec79072dba1c320e032e
parentae65c236c55a1e22e63bb9f03c1ff925268646f1
signaturelock-open Commit is signed but in an unrecognized format.

fix regression in ir_get_ref


1 files changed, 3 insertions(+), 0 deletions(-)

src/ir.cpp+3
...@@ -11210,6 +11210,9 @@ static IrInstruction *ir_get_ref(IrAnalyze *ira, IrInstruction *source_instructi...@@ -11210,6 +11210,9 @@ static IrInstruction *ir_get_ref(IrAnalyze *ira, IrInstruction *source_instructi
11210 ZigType *ptr_type = get_pointer_to_type_extra(ira->codegen, value->value.type,11210 ZigType *ptr_type = get_pointer_to_type_extra(ira->codegen, value->value.type,
11211 is_const, is_volatile, PtrLenSingle, 0, 0, 0, false);11211 is_const, is_volatile, PtrLenSingle, 0, 0, 0, false);
1121211212
11213 if ((err = type_resolve(ira->codegen, ptr_type, ResolveStatusZeroBitsKnown)))
11214 return ira->codegen->invalid_instruction;
11215
11213 IrInstruction *result_loc;11216 IrInstruction *result_loc;
11214 if (type_has_bits(ptr_type) && !handle_is_ptr(value->value.type)) {11217 if (type_has_bits(ptr_type) && !handle_is_ptr(value->value.type)) {
11215 result_loc = ir_resolve_result(ira, source_instruction, no_result_loc(), value->value.type, nullptr, true,11218 result_loc = ir_resolve_result(ira, source_instruction, no_result_loc(), value->value.type, nullptr, true,