aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-09-10 15:00:19 +0100
committergingerBill <bill@gingerbill.org>2020-09-10 15:00:19 +0100
commitc1149dbdeea1803267acd50c97a0070304b1b0c3 (patch)
tree54576c90361640b44dd6bcb643cf71f226aee478 /src/check_type.cpp
parent7e625f6ee71e48a01137ac3e918b747b29cf681e (diff)
Update math and math/linalg; add "pure_none" calling convention
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 118c9a622..e71a1b102 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2200,7 +2200,7 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type, ProcCall
return new_type;
}
- if (cc == ProcCC_None) {
+ if (cc == ProcCC_None || cc == ProcCC_PureNone) {
return new_type;
}
@@ -2335,7 +2335,7 @@ Type *type_to_abi_compat_result_type(gbAllocator a, Type *original_type, ProcCal
if (build_context.ODIN_OS == "windows") {
if (build_context.ODIN_ARCH == "amd64") {
if (is_type_integer_128bit(single_type)) {
- if (cc == ProcCC_None) {
+ if (cc == ProcCC_None || cc == ProcCC_PureNone) {
return original_type;
} else {
return alloc_type_simd_vector(2, t_u64);
@@ -2401,7 +2401,7 @@ bool abi_compat_return_by_pointer(gbAllocator a, ProcCallingConvention cc, Type
if (abi_return_type == nullptr) {
return false;
}
- if (cc == ProcCC_None) {
+ if (cc == ProcCC_None || cc == ProcCC_PureNone) {
return false;
}