mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Replace many uses of heap_allocator() with permanent_allocator()
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user