diff options
| author | gingerBill <bill@gingerbill.org> | 2020-05-06 20:18:43 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-05-06 20:18:43 +0100 |
| commit | 4fc60601d3530df1d05500b2416c60029ef29f08 (patch) | |
| tree | 0cf10670a0b0417499bf3e2afba9248c36fb6d45 /src | |
| parent | 4f4c3bb03b3dc9c2e78ce054ae36c441b466f5ac (diff) | |
Fix ABI typo
Diffstat (limited to 'src')
| -rw-r--r-- | src/ir.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 |