aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authoratkurtul <atilkurtulmus@gmail.com>2021-03-19 07:30:18 +0300
committerGitHub <noreply@github.com>2021-03-19 07:30:18 +0300
commitbb6e6fb4efff7cec6066e702e5bc0783c42ce686 (patch)
treeed252441316a0430a6bff2c9adc43353a7436e3a /src/check_type.cpp
parent333741222827db990ef2bce11873816e66bc1633 (diff)
parent5f5dfdc00eafd5ce0c357576489507ea5eebacfe (diff)
Merge pull request #1 from atkurtul/llvm
return by pointer on linux
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index e6e12ab1b..85c425ad4 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2423,7 +2423,7 @@ bool abi_compat_return_by_pointer(gbAllocator a, ProcCallingConvention cc, Type
}
}
- if (build_context.ODIN_OS == "windows") {
+ if (build_context.ODIN_OS == "windows" || build_context.ODIN_OS == "linux" ) {
i64 size = 8*type_size_of(abi_return_type);
switch (size) {
case 0: