From 910ab7b3d4243a566b0c0c0551ceb5edcfa13d63 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 22 Jun 2020 17:00:35 +0100 Subject: Fix typo --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') 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; -- cgit v1.2.3