diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-13 01:30:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-13 01:30:30 +0100 |
| commit | 042dbda47f8a428c1be2b1af2937f0cbff109c11 (patch) | |
| tree | 9185639a96d96da650ab290961531036f6ec4e8c /src/check_type.cpp | |
| parent | 2d7aea79b94721362f4fc5285c2a99ab37f52a58 (diff) | |
Replace many uses of `heap_allocator()` with `permanent_allocator()`
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index ccd426322..b80d6c05e 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2233,8 +2233,8 @@ Type *make_soa_struct_internal(CheckerContext *ctx, Ast *array_typ_expr, Ast *el field_count = 0; soa_struct = alloc_type_struct(); - soa_struct->Struct.fields = slice_make<Entity *>(heap_allocator(), field_count+extra_field_count); - soa_struct->Struct.tags = gb_alloc_array(heap_allocator(), String, field_count+extra_field_count); + soa_struct->Struct.fields = slice_make<Entity *>(permanent_allocator(), field_count+extra_field_count); + soa_struct->Struct.tags = gb_alloc_array(permanent_allocator(), String, field_count+extra_field_count); soa_struct->Struct.node = array_typ_expr; soa_struct->Struct.soa_kind = soa_kind; soa_struct->Struct.soa_elem = elem; @@ -2248,8 +2248,8 @@ Type *make_soa_struct_internal(CheckerContext *ctx, Ast *array_typ_expr, Ast *el field_count = cast(isize)old_array->Array.count; soa_struct = alloc_type_struct(); - soa_struct->Struct.fields = slice_make<Entity *>(heap_allocator(), field_count+extra_field_count); - soa_struct->Struct.tags = gb_alloc_array(heap_allocator(), String, field_count+extra_field_count); + soa_struct->Struct.fields = slice_make<Entity *>(permanent_allocator(), field_count+extra_field_count); + soa_struct->Struct.tags = gb_alloc_array(permanent_allocator(), String, field_count+extra_field_count); soa_struct->Struct.node = array_typ_expr; soa_struct->Struct.soa_kind = soa_kind; soa_struct->Struct.soa_elem = elem; @@ -2293,8 +2293,8 @@ Type *make_soa_struct_internal(CheckerContext *ctx, Ast *array_typ_expr, Ast *el field_count = old_struct->Struct.fields.count; soa_struct = alloc_type_struct(); - soa_struct->Struct.fields = slice_make<Entity *>(heap_allocator(), field_count+extra_field_count); - soa_struct->Struct.tags = gb_alloc_array(heap_allocator(), String, field_count+extra_field_count); + soa_struct->Struct.fields = slice_make<Entity *>(permanent_allocator(), field_count+extra_field_count); + soa_struct->Struct.tags = gb_alloc_array(permanent_allocator(), String, field_count+extra_field_count); soa_struct->Struct.node = array_typ_expr; soa_struct->Struct.soa_kind = soa_kind; soa_struct->Struct.soa_elem = elem; |