From 868aa4c14ab6c63b9b797f4a8178c73b69897711 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 14 Jan 2023 12:58:45 +0000 Subject: Minor changes to `StringMap` allocation --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.cpp') 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 clone_ast_array(Array const &array, AstFile *f) gb_internal Slice clone_ast_array(Slice const &array, AstFile *f) { Slice 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); } -- cgit v1.2.3