diff options
| author | gingerBill <bill@gingerbill.org> | 2020-01-04 12:42:16 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-01-04 12:42:16 +0000 |
| commit | 5ae924f9886b9bb922499fa1b964bad48363db08 (patch) | |
| tree | 62be31c84ebee08d1c13074263f8639ff7729a51 /src/check_type.cpp | |
| parent | cae1e025936a089cc0417c812eb3f273e50f9809 (diff) | |
Make "none" calling convention ignore return_by_pointer flag
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 6521bd248..f21c1563b 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2361,6 +2361,9 @@ bool abi_compat_return_by_pointer(gbAllocator a, ProcCallingConvention cc, Type if (abi_return_type == nullptr) { return false; } + if (cc == ProcCC_None) { + return false; + } Type *single_type = reduce_tuple_to_single_type(abi_return_type); |