diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-04 22:50:17 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-04 22:50:17 +0100 |
| commit | ae72b3c5bd80fad917a7e2d78d9945b9f19adb52 (patch) | |
| tree | ab9709537749da05d33aa0888bc7e1aa3984ed03 /src/codegen/print_llvm.cpp | |
| parent | c2e3c3801acd8af32fcf6ea3ad2d3a2ddc94c870 (diff) | |
Tagged unions memory layout change; begin demo 002
Diffstat (limited to 'src/codegen/print_llvm.cpp')
| -rw-r--r-- | src/codegen/print_llvm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/print_llvm.cpp b/src/codegen/print_llvm.cpp index e0ab7edc4..e4e804aa1 100644 --- a/src/codegen/print_llvm.cpp +++ b/src/codegen/print_llvm.cpp @@ -160,7 +160,7 @@ void ssa_print_type(gbFile *f, BaseTypeSizes s, Type *t) { break; case TypeRecord_Union: { i64 size_of_union = type_size_of(s, gb_heap_allocator(), t) - s.word_size; - ssa_fprintf(f, "{i%lld, [%lld x i8]}", word_bits, size_of_union); + 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)); |