diff options
| author | gingerBill <bill@gingerbill.org> | 2019-11-19 23:54:36 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-11-19 23:54:36 +0000 |
| commit | 44e0e96612fe7f08361ee3014d1230ccd9a2e39d (patch) | |
| tree | 2904cc4ff10b64bb5e88ac1ce6617922d808251c /src/check_type.cpp | |
| parent | 0839dccfdc6d754cbce1041a03d16b588cfbef95 (diff) | |
Prepare SOA Struct code for slices and dynamic arrays *to be implemented*
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index f62843e2b..aa5a32905 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2907,7 +2907,7 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t soa_struct->Struct.fields = array_make<Entity *>(heap_allocator(), old_array->Array.count); soa_struct->Struct.tags = array_make<String>(heap_allocator(), old_array->Array.count); soa_struct->Struct.node = e; - soa_struct->Struct.is_soa = true; + soa_struct->Struct.soa_kind = StructSoa_Fixed; soa_struct->Struct.soa_elem = elem; soa_struct->Struct.soa_count = count; @@ -2940,7 +2940,7 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t soa_struct->Struct.fields = array_make<Entity *>(heap_allocator(), old_struct->Struct.fields.count); soa_struct->Struct.tags = array_make<String>(heap_allocator(), old_struct->Struct.tags.count); soa_struct->Struct.node = e; - soa_struct->Struct.is_soa = true; + soa_struct->Struct.soa_kind = StructSoa_Fixed; soa_struct->Struct.soa_elem = elem; soa_struct->Struct.soa_count = count; |