[TableGen] Move some variables into for loop declaration. NFC

They aren't needed after the loop.

llvm-svn: 327784
This commit is contained in:
Craig Topper 2018-03-18 08:38:02 +00:00
parent 89dcda3e90
commit 7f31e735c9
1 changed files with 1 additions and 2 deletions

View File

@ -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