mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-20 12:44:59 -07:00
"Fix" LLVM boolean bug (more like a bodge)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user