diff options
| author | gingerBill <bill@gingerbill.org> | 2020-06-22 16:57:21 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-06-22 16:57:21 +0100 |
| commit | 2b27300387030c635acee783a2e573960ae3f748 (patch) | |
| tree | d718a117e76c77482f6e75d415fc5b3bfd3ca198 /src/check_type.cpp | |
| parent | 0db1ebb4e5bf36a7c44b9119bcf3055a58fd6103 (diff) | |
Fix LLVM code gen bug
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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)); |