Minor code cleanup for backend; add struct_fields_index_by_increasing_offset for future use

This commit is contained in:
gingerBill
2021-10-02 17:22:56 +01:00
parent ebca0398a7
commit 00671a59a0
9 changed files with 99 additions and 113 deletions

View File

@@ -2017,8 +2017,8 @@ void add_comparison_procedures_for_fields(CheckerContext *c, Type *t) {
}
break;
case Type_Struct:
for_array(i, t->Struct.fields) {
add_comparison_procedures_for_fields(c, t->Struct.fields[i]->type);
for (Entity *field : t->Struct.fields) {
add_comparison_procedures_for_fields(c, field->type);
}
break;
}