From 2b27300387030c635acee783a2e573960ae3f748 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 22 Jun 2020 16:57:21 +0100 Subject: Fix LLVM code gen bug --- src/check_type.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index d826860a6..61ad34133 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2683,10 +2683,9 @@ i64 check_array_count(CheckerContext *ctx, Operand *o, Ast *e) { return 0; } -Type *make_optional_ok_type(Type *value) { +Type *make_optional_ok_type(Type *value, bool typed) { // 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(); array_init(&t->Tuple.variables, a, 0, 2); array_add (&t->Tuple.variables, alloc_entity_field(nullptr, blank_token, value, false, 0)); -- cgit v1.2.3