aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-09-04 12:51:50 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-09-04 12:51:50 -0400
commitf27d82fe90e1d0007bf2d3ef52eac8cdbc381e0d (patch)
treea5350e23ebaed579a4bb4e08eb0d01beb7d9b18e /src/codegen.cpp
parentdbde8254d02241d893140cb499ad25e8cbb3438a (diff)
parent36828a2e6aa6879641bf6980379dd806b6f479a1 (diff)
downloadzig-f27d82fe90e1d0007bf2d3ef52eac8cdbc381e0d.tar.gz
zig-f27d82fe90e1d0007bf2d3ef52eac8cdbc381e0d.zip
Merge remote-tracking branch 'origin/master' into llvm7
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 e4405867ba..d6c7e41a2c 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -3041,7 +3041,7 @@ static void gen_set_stack_pointer(CodeGen *g, LLVMValueRef aligned_end_addr) {
static void set_call_instr_sret(CodeGen *g, LLVMValueRef call_instr) {
unsigned attr_kind_id = LLVMGetEnumAttributeKindForName("sret", 4);
- LLVMAttributeRef sret_attr = LLVMCreateEnumAttribute(LLVMGetGlobalContext(), attr_kind_id, 1);
+ LLVMAttributeRef sret_attr = LLVMCreateEnumAttribute(LLVMGetGlobalContext(), attr_kind_id, 0);
LLVMAddCallSiteAttribute(call_instr, 1, sret_attr);
}