Fix #raw_union bug caused by typo #349

This commit is contained in:
gingerBill
2019-03-14 23:25:55 +00:00
parent bdab5e00da
commit 291bf0c143
+1 -1
View File
@@ -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) {