aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-25 18:46:35 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-25 18:46:35 -0500
commit80f79cc9e8ed02f631c9d59f68e5f20a909e85fc (patch)
treeba8da3ef0611a547fe67c61ed2d42d4ea67e6d2e /src/analyze.cpp
parentcb38bd0a1436bd18de8ed57c45ffc890c8ddfb78 (diff)
parent4261fa3c49be715355c9623102bad0bf93d537a3 (diff)
downloadzig-80f79cc9e8ed02f631c9d59f68e5f20a909e85fc.tar.gz
zig-80f79cc9e8ed02f631c9d59f68e5f20a909e85fc.zip
Merge branch 'fengb-wasi-run-tests'
closes #3730
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 e47b67a495..e1b086059b 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -978,7 +978,8 @@ bool want_first_arg_sret(CodeGen *g, FnTypeId *fn_type_id) {
if (g->zig_target->arch == ZigLLVM_x86 ||
g->zig_target->arch == ZigLLVM_x86_64 ||
target_is_arm(g->zig_target) ||
- target_is_riscv(g->zig_target))
+ target_is_riscv(g->zig_target) ||
+ target_is_wasm(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;