From d936ca1ea003f82e0fda330cbad1f5bcf4387df2 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Mon, 10 Jul 2017 22:42:58 +0100 Subject: Compiler internal change: TypeRecord_Enum -> Type_Enum --- src/ir_print.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ir_print.cpp') diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 878291ebf..2ffd23818 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -280,6 +280,11 @@ void ir_print_type(irFileBuffer *f, irModule *m, Type *t) { ir_print_type(f, m, t_allocator); ir_fprintf(f, "}"); return; + + case Type_Enum: + ir_print_type(f, m, base_enum_type(t)); + return; + case Type_Record: { switch (t->Record.kind) { case TypeRecord_Struct: @@ -331,9 +336,6 @@ void ir_print_type(irFileBuffer *f, irModule *m, Type *t) { i64 align_of_union = type_align_of(heap_allocator(), t); ir_fprintf(f, "{[0 x <%lld x i8>], [%lld x i8]}", align_of_union, size_of_union); } return; - case TypeRecord_Enum: - ir_print_type(f, m, base_enum_type(t)); - return; } } break; -- cgit v1.2.3