From 860a5c3e86b2ce65a6c98bba7ed2184a637c3611 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 22 Dec 2017 18:14:35 +0000 Subject: "Fix" LLVM boolean bug (more like a bodge) --- src/check_type.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/check_type.cpp') 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; } -- cgit v1.2.3