aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-14 12:58:45 +0000
committergingerBill <bill@gingerbill.org>2023-01-14 12:58:45 +0000
commit868aa4c14ab6c63b9b797f4a8178c73b69897711 (patch)
tree311c9f807830cb32f7102c49b22053da7087a883 /src/parser.cpp
parent1ab90de4931f07ea61b1195de602f282a853568b (diff)
Minor changes to `StringMap` allocation
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 0eb7e5fc1..c26ca3dcb 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -89,7 +89,7 @@ gb_internal Array<Ast *> clone_ast_array(Array<Ast *> const &array, AstFile *f)
gb_internal Slice<Ast *> clone_ast_array(Slice<Ast *> const &array, AstFile *f) {
Slice<Ast *> result = {};
if (array.count > 0) {
- result = slice_clone(permanent_allocator(), array);
+ result = slice_clone(ast_allocator(nullptr), array);
for_array(i, array) {
result[i] = clone_ast(array[i], f);
}