mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 02:40:41 -04:00
Replace many uses of heap_allocator() with permanent_allocator()
This commit is contained in:
1 parent
2d7aea79b9
commit
042dbda47f
8 files changed
+23
-31
No files matched your search
+1
-1
@@ -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