aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-12 00:47:20 +0000
committergingerBill <bill@gingerbill.org>2023-01-12 00:47:20 +0000
commit520ff731de908f63c8f5fe21ea058b8590d4285d (patch)
treed1c0cb00882295e742526883132d06a1d3feb864 /src/check_builtin.cpp
parente9cfe698bad140fcfb6dda6baf1e8b2e00e52003 (diff)
Add `ArenaTemp` to the compiler
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 294bc7da8..a7d5536e7 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -1118,6 +1118,7 @@ gb_internal bool cache_load_file_directive(CheckerContext *c, Ast *call, String
}
});
+ TEMPORARY_ALLOCATOR_GUARD();
char *c_str = alloc_cstring(temporary_allocator(), path);
gbFile f = {};
@@ -3062,6 +3063,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
}
case BuiltinProc_soa_zip: {
+ TEMPORARY_ALLOCATOR_GUARD();
auto types = array_make<Type *>(temporary_allocator(), 0, ce->args.count);
auto names = array_make<String>(temporary_allocator(), 0, ce->args.count);