aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-03-14 23:25:55 +0000
committergingerBill <bill@gingerbill.org>2019-03-14 23:25:55 +0000
commit291bf0c143081c5b3e577f6a6fbf90781de95096 (patch)
treee5072c35fa060d56642891847f3ae0e60f289856 /src/ir_print.cpp
parentbdab5e00da6dee80b7582135815f2183def935bb (diff)
Fix #raw_union bug caused by typo #349
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 97194e794..53c318e47 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -471,7 +471,7 @@ void ir_print_type(irFileBuffer *f, irModule *m, Type *t, bool in_struct) {
i64 align_of_union = type_align_of(t);
ir_write_byte(f, '{');
ir_print_alignment_prefix_hack(f, align_of_union);
- ir_fprintf(f, ", [%lld x i8]}", align_of_union, size_of_union);
+ ir_fprintf(f, ", [%lld x i8]}", size_of_union);
return;
} else {
if (t->Struct.is_packed) {