aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-02-23 21:39:47 +0000
committergingerBill <bill@gingerbill.org>2019-02-23 21:39:47 +0000
commite551d2b25ea39afb95f7b8ee4309ef0cc8b502b8 (patch)
tree664e1906ba18e2d7d1fdb64915c54c1d10b4536d /src/check_type.cpp
parent38ae2e9efaf8d227a138d749085599e7ee9fde54 (diff)
Replace `foreign export {}` with `@export`
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 8b6b67e65..1c5d5ac85 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1783,7 +1783,11 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type) {
Type *new_type = original_type;
if (is_type_boolean(original_type)) {
- return t_llvm_bool;
+ Type *t = core_type(base_type(new_type));
+ if (t == t_bool) {
+ return t_llvm_bool;
+ }
+ return new_type;
}
if (build_context.ODIN_ARCH == "386") {