aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2020-04-21 18:42:21 +0200
committerAndrew Kelley <andrew@ziglang.org>2020-04-24 15:28:55 -0400
commitc829f2f7b7c5bdd13d3c39ae2960ed108393a210 (patch)
treef93b1df14908722f4e587f438102813067e3a4c6 /src/analyze.cpp
parenta9eb4a6740e0bb00e1984de3768a7de6001c25dd (diff)
downloadzig-c829f2f7b7c5bdd13d3c39ae2960ed108393a210.tar.gz
zig-c829f2f7b7c5bdd13d3c39ae2960ed108393a210.zip
Add mips support to standard library
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 28b1f0cd76..d170273808 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -1007,7 +1007,7 @@ bool want_first_arg_sret(CodeGen *g, FnTypeId *fn_type_id) {
{
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;
- } else if (g->zig_target->arch == ZigLLVM_mipsel) {
+ } else if (g->zig_target->arch == ZigLLVM_mips || g->zig_target->arch == ZigLLVM_mipsel) {
return false;
}
zig_panic("TODO implement C ABI for this architecture. See https://github.com/ziglang/zig/issues/1481");