mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix result location alignment in ir_render_call
This commit is contained in:
parent
6fe3b20962
commit
776423bbf7
@ -3837,7 +3837,7 @@ static LLVMValueRef ir_render_call(CodeGen *g, IrExecutable *executable, IrInstr
|
||||
return result_loc;
|
||||
} else if (handle_is_ptr(src_return_type)) {
|
||||
LLVMValueRef store_instr = LLVMBuildStore(g->builder, result, result_loc);
|
||||
LLVMSetAlignment(store_instr, LLVMGetAlignment(result_loc));
|
||||
LLVMSetAlignment(store_instr, get_ptr_align(g, instruction->result_loc->value.type));
|
||||
return result_loc;
|
||||
} else {
|
||||
return result;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user