aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-10 22:42:58 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-10 22:42:58 +0100
commitd936ca1ea003f82e0fda330cbad1f5bcf4387df2 (patch)
tree8df386ad4d9a360b1efd4a0193bf4b516f4b5781 /src/ir_print.cpp
parentfd8c4d58bb476f858b5238287b6e9911dd5c333c (diff)
Compiler internal change: TypeRecord_Enum -> Type_Enum
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp8
1 files changed, 5 insertions, 3 deletions
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;