diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-10 13:02:13 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-10 13:02:13 +0100 |
| commit | 4a932616fc6d8d5c4cad98debf292a1916e5a2be (patch) | |
| tree | 6cbd10f3a41a248e50bbf9af0893f56af03b4b03 /src/check_builtin.cpp | |
| parent | 73fe36f19c8e7563f33e9251f58ce7ddb5e4eacd (diff) | |
Improve CheckerContext usage
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |