diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-13 11:29:46 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-13 11:29:46 +0100 |
| commit | be68bf9f26122b764a43cf61369ca54c203d1df3 (patch) | |
| tree | 082246e9b7498cff898208e94afaf31e236888e8 /src/check_type.cpp | |
| parent | 15c309b0b84c2ae36feea4220f0ccef28587db63 (diff) | |
Only store `field_index` remove `field_src_index` (for the time being)
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index b80d6c05e..8d129eb68 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2317,7 +2317,7 @@ Type *make_soa_struct_internal(CheckerContext *ctx, Ast *array_typ_expr, Ast *el } else { field_type = alloc_type_pointer(old_field->type); } - Entity *new_field = alloc_entity_field(scope, old_field->token, field_type, false, old_field->Variable.field_src_index); + Entity *new_field = alloc_entity_field(scope, old_field->token, field_type, false, old_field->Variable.field_index); soa_struct->Struct.fields[i] = new_field; add_entity(ctx, scope, nullptr, new_field); add_entity_use(ctx, nullptr, new_field); |