diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-14 13:44:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-14 13:44:47 +0100 |
| commit | 6959554040d85597300ab2ce6c25852d18e61923 (patch) | |
| tree | 43cd72fb83e5bdc03240805be3704964d51618a7 /src/checker.cpp | |
| parent | 0a530b5ce8642508c5df2fdb9ec43682be07d5cd (diff) | |
Calculate size and alignment, and reuse memory for all variadic calls within a procedure body
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 9adf4ef3c..336440d32 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -185,6 +185,8 @@ gb_internal void init_decl_info(DeclInfo *d, Scope *scope, DeclInfo *parent) { ptr_set_init(&d->type_info_deps, 0); d->labels.allocator = heap_allocator(); d->variadic_reuses.allocator = heap_allocator(); + d->variadic_reuse_max_bytes = 0; + d->variadic_reuse_max_align = 1; } gb_internal DeclInfo *make_decl_info(Scope *scope, DeclInfo *parent) { |