From 4a932616fc6d8d5c4cad98debf292a1916e5a2be Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 10 Jul 2021 13:02:13 +0100 Subject: Improve CheckerContext usage --- src/check_builtin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/check_builtin.cpp') diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index d9dd2be03..cbf49a2c7 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -1934,7 +1934,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32 Entity *new_field = alloc_entity_field(scope, token, array_type, false, cast(i32)i); soa_struct->Struct.fields[i] = new_field; - add_entity(c->checker, scope, nullptr, new_field); + add_entity(c, scope, nullptr, new_field); add_entity_use(c, nullptr, new_field); } @@ -1959,7 +1959,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32 Type *array_type = alloc_type_array(old_field->type, count); Entity *new_field = alloc_entity_field(scope, old_field->token, array_type, false, old_field->Variable.field_src_index); soa_struct->Struct.fields[i] = new_field; - add_entity(c->checker, scope, nullptr, new_field); + add_entity(c, scope, nullptr, new_field); } else { soa_struct->Struct.fields[i] = old_field; } @@ -1971,7 +1971,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32 Token token = {}; token.string = str_lit("Base_Type"); Entity *base_type_entity = alloc_entity_type_name(scope, token, elem, EntityState_Resolved); - add_entity(c->checker, scope, nullptr, base_type_entity); + add_entity(c, scope, nullptr, base_type_entity); add_type_info_type(c, soa_struct); -- cgit v1.2.3