diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-19 12:15:21 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-19 12:15:21 +0100 |
| commit | 6113164211d5bd010ea324594d69668e5732817d (patch) | |
| tree | e31315edbdaefdc698dae9d5f78b1555207d97f4 /src/ir_print.cpp | |
| parent | 4db462a703d506f2ef23a16921a23a10115feacb (diff) | |
Change union layout to store type info rather than an integer; ternary expression for types with constant condition
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index e2d33054b..deb5b9e34 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -292,7 +292,8 @@ void ir_print_type(irFileBuffer *f, irModule *m, Type *t) { ir_fprintf(f, "{[0 x <%lld x i8>], ", align); ir_fprintf(f, "[%lld x i8], ", block_size); - ir_fprintf(f, "i%lld}", word_bits); + ir_print_type(f, m, t_type_info_ptr); + ir_fprintf(f, "}"); #else i64 block_size = total_size - build_context.word_size; ir_fprintf(f, "{[0 x <%lld x i8>], [%lld x i8], i%lld}", align, block_size, word_bits); |