diff options
| author | gingerBill <bill@gingerbill.org> | 2020-06-22 17:00:35 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-06-22 17:00:35 +0100 |
| commit | 910ab7b3d4243a566b0c0c0551ceb5edcfa13d63 (patch) | |
| tree | a6e1d3b3f48a64d93327ec5bc125648ae5c56a04 /src | |
| parent | 2b27300387030c635acee783a2e573960ae3f748 (diff) | |
Fix typo
Diffstat (limited to 'src')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 923837293..2156a8102 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -977,7 +977,7 @@ irValue *ir_value_param(irProcedure *parent, Entity *e, Type *abi_type, i32 inde if (is_type_pointer(abi_type)) { GB_ASSERT(e->kind == Entity_Variable); Type *av = type_deref(abi_type); - if (are_types_identical(abi_type, e->type)) { + if (are_types_identical(av, e->type)) { v->Param.kind = irParamPass_Pointer; if (e->flags&EntityFlag_Value) { v->Param.kind = irParamPass_ConstRef; |