Replace many uses of heap_allocator() with permanent_allocator()

This commit is contained in:
gingerBill committed 2021-09-13 01:30:30 +01:00
1 parent 2d7aea79b9
commit 042dbda47f
8 files changed
+23 -31

No files matched your search

+1 -1
View File
@@ -4954,7 +4954,7 @@ Entity **populate_proc_parameter_list(CheckerContext *c, Type *proc_type, isize
} else {
lhs_count = pt->params->Tuple.variables.count;
}
lhs = gb_alloc_array(heap_allocator(), Entity *, lhs_count);
lhs = gb_alloc_array(permanent_allocator(), Entity *, lhs_count);
for (isize i = 0; i < lhs_count; i++) {
Entity *e = pt->params->Tuple.variables[i];
if (!is_type_polymorphic(e->type)) {