authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2020-03-05 16:50:58-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-05 20:45:01-05:00
log428677ea361447949f274587faa41656ce8199ab
tree59c96489a90b1fc683c68a707ae167053fff525e
parentc08444b33ff49981cd0a39cced479e2197dc4fd7

stage1: fix regression

- regression was introduced by 371c21aa70fc61ef703e34079ce6de6c52ec91df

1 files changed, 1 insertions(+), 1 deletions(-)

src/analyze.cpp+1-1
......@@ -6111,7 +6111,7 @@ ZigValue **realloc_const_vals_ptrs(CodeGen *g, ZigValue **ptr, size_t old_count,
61116111 assert(new_count >= old_count);
61126112
61136113 size_t new_item_count = new_count - old_count;
6114 ZigValue **result = g->pass1_arena->reallocate(ptr, old_count, new_count);
6114 ZigValue **result = heap::c_allocator.reallocate(ptr, old_count, new_count);
61156115 ZigValue *vals = g->pass1_arena->allocate<ZigValue>(new_item_count);
61166116 for (size_t i = old_count; i < new_count; i += 1) {
61176117 result[i] = &vals[i - old_count];