forked from OSchip/llvm-project
[TableGen] Pull the increment of a variable out of an assert.
The variable is only used by the assert so the code was fine before, but it was flagged in PR47072.
This commit is contained in:
parent
a31b3893c7
commit
1675f8a251
|
@ -1288,7 +1288,8 @@ RegisterInfoEmitter::runTargetDesc(raw_ostream &OS, CodeGenTarget &Target,
|
|||
OS << CGH.getMode(M).Name;
|
||||
OS << ")\n";
|
||||
for (const auto &RC : RegisterClasses) {
|
||||
assert(RC.EnumValue == EV++ && "Unexpected order of register classes");
|
||||
assert(RC.EnumValue == EV && "Unexpected order of register classes");
|
||||
++EV;
|
||||
(void)EV;
|
||||
const RegSizeInfo &RI = RC.RSI.get(M);
|
||||
OS << " { " << RI.RegSize << ", " << RI.SpillSize << ", "
|
||||
|
|
Loading…
Reference in New Issue