authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-06-07 11:51:50-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-06-07 11:51:50-04:00
log4c222a482fa3807fce8455aa54fe4931bee7bb37
tree022f1cd00998054be3918dd62f4a43f0a3d733eb
parent76a3938d69e23a22ee2d5db971737c532ee8a6b0
signaturelock-open Commit is signed but in an unrecognized format.

fix behavior for non sret fn calls


1 files changed, 2 insertions(+), 2 deletions(-)

src/ir.cpp+2-2
......@@ -15311,7 +15311,7 @@ static IrInstruction *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCallSrc *c
1531115311 return ir_finish_anal(ira, result);
1531215312 }
1531315313
15314 call_instruction->result_loc->written = true;
15314 call_instruction->result_loc->written = handle_is_ptr(impl_fn_type_id->return_type);
1531515315 assert(async_allocator_inst == nullptr);
1531615316 IrInstruction *new_call_instruction = ir_build_call_gen(ira, &call_instruction->base,
1531715317 impl_fn, nullptr, impl_param_count, casted_args, fn_inline,
......@@ -15418,7 +15418,7 @@ static IrInstruction *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCallSrc *c
1541815418 return result_loc;
1541915419 }
1542015420
15421 call_instruction->result_loc->written = true;
15421 call_instruction->result_loc->written = handle_is_ptr(return_type);
1542215422 IrInstruction *new_call_instruction = ir_build_call_gen(ira, &call_instruction->base, fn_entry, fn_ref,
1542315423 call_param_count, casted_args, fn_inline, false, nullptr, casted_new_stack,
1542415424 result_loc, return_type);