diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-07-16 00:01:31 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-07-16 00:01:31 -0400 |
| commit | 5345044edfe6ce5d8c13d3a0e86abaad999f853b (patch) | |
| tree | 508ded38a4b9e70b21052eb0d0b83bbad3d04b9e /src/codegen.cpp | |
| parent | 3f4abe97bdbe666dbb3532c14a97e414aae4caca (diff) | |
| parent | 776423bbf72312e756eb661b616f0e1bb805f568 (diff) | |
| download | zig-5345044edfe6ce5d8c13d3a0e86abaad999f853b.tar.gz zig-5345044edfe6ce5d8c13d3a0e86abaad999f853b.zip | |
Merge branch 'hryx-translate-c-userland'
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 94e2a98b2f..234b28219b 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -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; |
