aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-07-16 00:01:31 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-07-16 00:01:31 -0400
commit5345044edfe6ce5d8c13d3a0e86abaad999f853b (patch)
tree508ded38a4b9e70b21052eb0d0b83bbad3d04b9e /src/codegen.cpp
parent3f4abe97bdbe666dbb3532c14a97e414aae4caca (diff)
parent776423bbf72312e756eb661b616f0e1bb805f568 (diff)
downloadzig-5345044edfe6ce5d8c13d3a0e86abaad999f853b.tar.gz
zig-5345044edfe6ce5d8c13d3a0e86abaad999f853b.zip
Merge branch 'hryx-translate-c-userland'
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
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;