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_expr.cpp | |
| parent | 2d7aea79b94721362f4fc5285c2a99ab37f52a58 (diff) | |
Replace many uses of `heap_allocator()` with `permanent_allocator()`
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 69d60d651..d59c3fea9 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -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)) { |