[TableGen] Use range based for loop. NFC

llvm-svn: 305806
This commit is contained in:
Craig Topper 2017-06-20 16:34:35 +00:00
parent ba5d4af490
commit e8a8e6a6b1
1 changed files with 1 additions and 3 deletions

View File

@ -3289,9 +3289,7 @@ void CodeGenDAGPatterns::InferInstructionFlags() {
// Second, look for single-instruction patterns defined outside the
// instruction.
for (ptm_iterator I = ptm_begin(), E = ptm_end(); I != E; ++I) {
const PatternToMatch &PTM = *I;
for (const PatternToMatch &PTM : ptms()) {
// We can only infer from single-instruction patterns, otherwise we won't
// know which instruction should get the flags.
SmallVector<Record*, 8> PatInstrs;