mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix typo
This commit is contained in:
+1
-1
@@ -977,7 +977,7 @@ irValue *ir_value_param(irProcedure *parent, Entity *e, Type *abi_type, i32 inde
|
|||||||
if (is_type_pointer(abi_type)) {
|
if (is_type_pointer(abi_type)) {
|
||||||
GB_ASSERT(e->kind == Entity_Variable);
|
GB_ASSERT(e->kind == Entity_Variable);
|
||||||
Type *av = type_deref(abi_type);
|
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;
|
v->Param.kind = irParamPass_Pointer;
|
||||||
if (e->flags&EntityFlag_Value) {
|
if (e->flags&EntityFlag_Value) {
|
||||||
v->Param.kind = irParamPass_ConstRef;
|
v->Param.kind = irParamPass_ConstRef;
|
||||||
|
|||||||
Reference in New Issue
Block a user