diff options
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 4 |
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; } |