forked from OSchip/llvm-project
[TableGen] Move some variables into for loop declaration. NFC
They aren't needed after the loop. llvm-svn: 327784
This commit is contained in:
parent
89dcda3e90
commit
7f31e735c9
|
@ -764,8 +764,7 @@ void CodeGenSchedModels::createInstRWClass(Record *InstRWDef) {
|
|||
}
|
||||
// For each set of Instrs, create a new class if necessary, and map or remap
|
||||
// the Instrs to it.
|
||||
unsigned CIdx = 0, CEnd = ClassInstrs.size();
|
||||
for (; CIdx != CEnd; ++CIdx) {
|
||||
for (unsigned CIdx = 0, CEnd = ClassInstrs.size(); CIdx != CEnd; ++CIdx) {
|
||||
unsigned OldSCIdx = ClassInstrs[CIdx].first;
|
||||
ArrayRef<Record*> InstDefs = ClassInstrs[CIdx].second;
|
||||
// If the all instrs in the current class are accounted for, then leave
|
||||
|
|
Loading…
Reference in New Issue