From 44e0e96612fe7f08361ee3014d1230ccd9a2e39d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 19 Nov 2019 23:54:36 +0000 Subject: Prepare SOA Struct code for slices and dynamic arrays *to be implemented* --- src/check_type.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/check_type.cpp') 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(heap_allocator(), old_array->Array.count); soa_struct->Struct.tags = array_make(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(heap_allocator(), old_struct->Struct.fields.count); soa_struct->Struct.tags = array_make(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; -- cgit v1.2.3