aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-12 10:48:38 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-12 10:48:38 -0700
commitaf4cc20ce275aeb0e59eee3d893b2f310c1f0239 (patch)
treecc3ff8fa792c20ff0fc0f1e19e98998cc76c07c2 /src/analyze.cpp
parent03a23418ff13e6ff64cdeed3ef4b54f99c533d88 (diff)
parent9fe4c89230df2d78c8bf37b4b1d7a9bedb92677b (diff)
downloadzig-af4cc20ce275aeb0e59eee3d893b2f310c1f0239.tar.gz
zig-af4cc20ce275aeb0e59eee3d893b2f310c1f0239.zip
Merge remote-tracking branch 'origin/master' into stage2-zig-cc
Master branch added in the concept of library versioning being optional to main.cpp. It will need to be re-added into this branch before merging back into master.
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 0e036087f3..ade6453168 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -1009,7 +1009,8 @@ bool want_first_arg_sret(CodeGen *g, FnTypeId *fn_type_id) {
g->zig_target->arch == ZigLLVM_x86_64 ||
target_is_arm(g->zig_target) ||
target_is_riscv(g->zig_target) ||
- target_is_wasm(g->zig_target))
+ target_is_wasm(g->zig_target) ||
+ target_is_ppc(g->zig_target))
{
X64CABIClass abi_class = type_c_abi_x86_64_class(g, fn_type_id->return_type);
return abi_class == X64CABIClass_MEMORY || abi_class == X64CABIClass_MEMORY_nobyval;