Fix using determination order

This commit is contained in:
gingerBill
2018-03-03 20:07:12 +00:00
parent 9274f29ca9
commit 41b6d215bb
6 changed files with 19 additions and 29 deletions
+1 -1
View File
@@ -731,7 +731,7 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type *
}
} else {
for_array(i, cl->elems) {
Entity *f = type->Struct.fields_in_src_order[i];
Entity *f = type->Struct.fields[i];
TypeAndValue tav = type_and_value_of_expr(m->info, cl->elems[i]);
ExactValue val = {};
if (tav.mode != Addressing_Invalid) {