From 4fc60601d3530df1d05500b2416c60029ef29f08 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 6 May 2020 20:18:43 +0100 Subject: [PATCH] Fix ABI typo --- src/ir.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ir.cpp b/src/ir.cpp index b68b5a467..40be67623 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -965,6 +965,8 @@ irValue *ir_value_param(irProcedure *parent, Entity *e, Type *abi_type, i32 inde v->Param.kind = irParamPass_Integer; } else if (abi_type == t_llvm_bool) { v->Param.kind = irParamPass_Value; + } else if (is_type_boolean(abi_type)) { + v->Param.kind = irParamPass_Integer; } else if (is_type_simd_vector(abi_type)) { v->Param.kind = irParamPass_BitCast; } else if (is_type_float(abi_type)) { @@ -972,7 +974,7 @@ irValue *ir_value_param(irProcedure *parent, Entity *e, Type *abi_type, i32 inde } else if (is_type_tuple(abi_type)) { v->Param.kind = irParamPass_Tuple; } else { - GB_PANIC("Invalid abi type pass kind %s", type_to_string(abi_type)); + GB_PANIC("Invalid abi type pass kind: %s", type_to_string(abi_type)); } } array_init(&v->Param.referrers, heap_allocator()); // TODO(bill): Replace heap allocator here