diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2020-03-05 16:50:58 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-05 20:45:01 -0500 |
| commit | 428677ea361447949f274587faa41656ce8199ab (patch) | |
| tree | 59c96489a90b1fc683c68a707ae167053fff525e /src/analyze.cpp | |
| parent | c08444b33ff49981cd0a39cced479e2197dc4fd7 (diff) | |
| download | zig-428677ea361447949f274587faa41656ce8199ab.tar.gz zig-428677ea361447949f274587faa41656ce8199ab.zip | |
stage1: fix regression
- regression was introduced by 371c21aa70fc61ef703e34079ce6de6c52ec91df
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index a61c4f2906..1e667be5af 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -6111,7 +6111,7 @@ ZigValue **realloc_const_vals_ptrs(CodeGen *g, ZigValue **ptr, size_t old_count, assert(new_count >= old_count); size_t new_item_count = new_count - old_count; - ZigValue **result = g->pass1_arena->reallocate(ptr, old_count, new_count); + ZigValue **result = heap::c_allocator.reallocate(ptr, old_count, new_count); ZigValue *vals = g->pass1_arena->allocate<ZigValue>(new_item_count); for (size_t i = old_count; i < new_count; i += 1) { result[i] = &vals[i - old_count]; |
