aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-10-17 21:16:01 +0100
committergingerBill <bill@gingerbill.org>2018-10-17 21:16:01 +0100
commitb171cc41e6cc0271656593b547c3f8b27664d5bc (patch)
treec34fc8d8555fbf6892ff6798bc7ed52208f6f3da /src/check_type.cpp
parentefc3a9e69dd072b678a78535d7b5a5f71e474024 (diff)
__atomic_* "intrinsics" using LLVM instructions
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp1
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();