From bd5d095de4a3a3de574f6004751718ee944417cc Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sun, 23 Oct 2016 14:46:52 +0100 Subject: Separate ssa_struct_gep and ssa_array_gep procedures --- src/checker/type.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/checker/type.cpp') diff --git a/src/checker/type.cpp b/src/checker/type.cpp index 8f355b5ae..d8434581d 100644 --- a/src/checker/type.cpp +++ b/src/checker/type.cpp @@ -159,7 +159,7 @@ struct Type { }; }; -gbString type_to_string(Type *type, gbAllocator a = gb_heap_allocator()); +gbString type_to_string(Type *type, gbAllocator a = heap_allocator()); Type *base_type(Type *t) { for (;;) { @@ -359,6 +359,8 @@ gb_global Type *t_byte = &basic_type_aliases[0]; gb_global Type *t_rune = &basic_type_aliases[1]; +gb_global Type *t_u8_ptr = NULL; + gb_global Type *t_type_info = NULL; gb_global Type *t_type_info_ptr = NULL; gb_global Type *t_type_info_member = NULL; @@ -791,7 +793,7 @@ void selection_add_index(Selection *s, isize index) { // IMPORTANT NOTE(bill): this requires a stretchy buffer/dynamic array so it requires some form // of heap allocation if (s->index.data == NULL) { - array_init(&s->index, gb_heap_allocator()); + array_init(&s->index, heap_allocator()); } array_add(&s->index, index); } -- cgit v1.2.3