@@ -1447,7 +1447,8 @@ class Record {
1447
1447
// Tracks Record instances. Not owned by Record.
1448
1448
RecordKeeper &TrackedRecords;
1449
1449
1450
- DefInit *TheInit = nullptr ;
1450
+ // The DefInit corresponding to this record.
1451
+ DefInit *CorrespondingDefInit = nullptr ;
1451
1452
1452
1453
// Unique record ID.
1453
1454
unsigned ID;
@@ -1471,8 +1472,8 @@ class Record {
1471
1472
: Record(StringInit::get(N), locs, records, false, Class) {}
1472
1473
1473
1474
// When copy-constructing a Record, we must still guarantee a globally unique
1474
- // ID number. Don't copy TheInit either since it's owned by the original
1475
- // record. All other fields can be copied normally.
1475
+ // ID number. Don't copy CorrespondingDefInit either, since it's owned by the
1476
+ // original record. All other fields can be copied normally.
1476
1477
Record (const Record &O)
1477
1478
: Name(O.Name), Locs(O.Locs), TemplateArgs(O.TemplateArgs),
1478
1479
Values (O.Values), SuperClasses(O.SuperClasses),
@@ -1586,7 +1587,8 @@ class Record {
1586
1587
}
1587
1588
1588
1589
void addSuperClass (Record *R, SMRange Range) {
1589
- assert (!TheInit && " changing type of record after it has been referenced" );
1590
+ assert (!CorrespondingDefInit &&
1591
+ " changing type of record after it has been referenced" );
1590
1592
assert (!isSubClassOf (R) && " Already subclassing record!" );
1591
1593
SuperClasses.push_back (std::make_pair (R, Range));
1592
1594
}
0 commit comments