diff options
| author | gingerBill <bill@gingerbill.org> | 2020-11-15 18:08:52 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-11-15 18:08:52 +0000 |
| commit | 3c1c10a1785a97831a69fb6d94356d5cc4989bd6 (patch) | |
| tree | 1986555b3eafc3e849400ce423f6cd6ecc08c45d /src/entity.cpp | |
| parent | 9f930421632f4f6d5352ec01f12a1a7fb1050ba7 (diff) | |
Begin clarifying allocation patterns by changing from `heap_allocator` to specific arenas
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index a9d598735..708b0862c 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -220,7 +220,7 @@ bool entity_has_deferred_procedure(Entity *e) { gb_global u64 global_entity_id = 0; Entity *alloc_entity(EntityKind kind, Scope *scope, Token token, Type *type) { - gbAllocator a = heap_allocator(); + gbAllocator a = permanent_allocator(); Entity *entity = gb_alloc_item(a, Entity); entity->kind = kind; entity->state = EntityState_Unresolved; |