authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-07-15 23:44:44-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-07-15 23:44:44-04:00
log776423bbf72312e756eb661b616f0e1bb805f568
tree508ded38a4b9e70b21052eb0d0b83bbad3d04b9e
parent6fe3b209620a340da536da4c9f3d07e0e6051840
signaturelock-open Commit is signed but in an unrecognized format.

fix result location alignment in ir_render_call


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

src/codegen.cpp+1-1
...@@ -3837,7 +3837,7 @@ static LLVMValueRef ir_render_call(CodeGen *g, IrExecutable *executable, IrInstr...@@ -3837,7 +3837,7 @@ static LLVMValueRef ir_render_call(CodeGen *g, IrExecutable *executable, IrInstr
3837 return result_loc;3837 return result_loc;
3838 } else if (handle_is_ptr(src_return_type)) {3838 } else if (handle_is_ptr(src_return_type)) {
3839 LLVMValueRef store_instr = LLVMBuildStore(g->builder, result, result_loc);3839 LLVMValueRef store_instr = LLVMBuildStore(g->builder, result, result_loc);
3840 LLVMSetAlignment(store_instr, LLVMGetAlignment(result_loc));3840 LLVMSetAlignment(store_instr, get_ptr_align(g, instruction->result_loc->value.type));
3841 return result_loc;3841 return result_loc;
3842 } else {3842 } else {
3843 return result;3843 return result;