diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-03-19 11:07:12 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-19 11:07:12 +0000 |
| commit | 2b806f7463e7bff9a6818e17ed65b9640a905f50 (patch) | |
| tree | 6e3670e3e6ed17c8e694cccc98cc7c8ca3181e3e /src/check_type.cpp | |
| parent | 333741222827db990ef2bce11873816e66bc1633 (diff) | |
| parent | 6de0b689288dfebc7c68acbe299526e8310c5bf2 (diff) | |
Merge pull request #875 from atkurtul/master
Run an early memcpy pass regardless of the opt flag and return large structs by pointer on linux
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
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: |