From c1149dbdeea1803267acd50c97a0070304b1b0c3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 10 Sep 2020 15:00:19 +0100 Subject: Update math and math/linalg; add "pure_none" calling convention --- src/check_type.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/check_type.cpp') 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; } -- cgit v1.2.3