aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-12-22 18:14:35 +0000
committergingerBill <bill@gingerbill.org>2017-12-22 18:14:35 +0000
commit860a5c3e86b2ce65a6c98bba7ed2184a637c3611 (patch)
tree7ace2e48b94806520c551dcb22da44dd70409753 /src/check_type.cpp
parentb449305cc1f8bd362d77d6356e5e272495aaaa44 (diff)
"Fix" LLVM boolean bug (more like a bodge)
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 3736a7bca..0148f1f60 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1455,6 +1455,10 @@ Type *check_get_results(Checker *c, Scope *scope, AstNode *_results) {
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;
+ }
+
if (build_context.ODIN_ARCH == "x86") {
return new_type;
}