diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-14 11:39:05 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-14 11:39:05 +0100 |
| commit | edc793d7c123a38826860ef72684308902a7012c (patch) | |
| tree | 0d6c6c97af7355313e76b3d433d555dfff43ab8d /src/checker.cpp | |
| parent | f98a7b84dfd03bffacc0951209e36e102a6448ca (diff) | |
Add `#no_capture args: ..T` to reuse the backing array stack memory
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 8756cce1a..abacc13cb 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -184,6 +184,7 @@ gb_internal void init_decl_info(DeclInfo *d, Scope *scope, DeclInfo *parent) { ptr_set_init(&d->deps, 0); ptr_set_init(&d->type_info_deps, 0); d->labels.allocator = heap_allocator(); + d->no_captures.allocator = heap_allocator(); } gb_internal DeclInfo *make_decl_info(Scope *scope, DeclInfo *parent) { |