diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-10-23 14:46:52 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-10-23 14:46:52 +0100 |
| commit | bd5d095de4a3a3de574f6004751718ee944417cc (patch) | |
| tree | 0eaceb775794fe21073c2b4159287ae08b99c3e3 /src/checker/type.cpp | |
| parent | f60dc7b0a7f8bf8122df0fa3b4d12603a9775f87 (diff) | |
Separate ssa_struct_gep and ssa_array_gep procedures
Diffstat (limited to 'src/checker/type.cpp')
| -rw-r--r-- | src/checker/type.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |