return by pointer on linux

This commit is contained in:
atil
2021-03-19 07:28:27 +03:00
parent 3337412228
commit 5f5dfdc00e
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -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: