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/codegen/print_llvm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/codegen/print_llvm.cpp') diff --git a/src/codegen/print_llvm.cpp b/src/codegen/print_llvm.cpp index abfd61f44..3b743b7b8 100644 --- a/src/codegen/print_llvm.cpp +++ b/src/codegen/print_llvm.cpp @@ -208,11 +208,11 @@ void ssa_print_type(ssaFileBuffer *f, ssaModule *m, Type *t) { } break; case TypeRecord_Union: { - i64 size_of_union = type_size_of(s, gb_heap_allocator(), t) - s.word_size; + i64 size_of_union = type_size_of(s, heap_allocator(), t) - s.word_size; ssa_fprintf(f, "{[%lld x i8], i%lld}", size_of_union, word_bits); } break; case TypeRecord_RawUnion: - ssa_fprintf(f, "[%lld x i8]", type_size_of(s, gb_heap_allocator(), t)); + ssa_fprintf(f, "[%lld x i8]", type_size_of(s, heap_allocator(), t)); break; case TypeRecord_Enum: ssa_print_type(f, m, t->Record.enum_base); -- cgit v1.2.3