mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 19:32:23 -07:00
Fix LLVM code gen bug
This commit is contained in:
+1
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user