diff options
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 9704db081..f1c9875a1 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2068,6 +2068,7 @@ i64 check_array_count(CheckerContext *ctx, Operand *o, Ast *e) { } Type *make_optional_ok_type(Type *value) { + // LEAK TODO(bill): probably don't reallocate everything here and reuse the same one for the same type if possible gbAllocator a = heap_allocator(); bool typed = true; Type *t = alloc_type_tuple(); |