forked from OSchip/llvm-project
[TableGen] Use range-based for loop. NFC
This commit is contained in:
parent
db75db85f2
commit
f1aaa306ee
|
@ -163,9 +163,9 @@ void DAGISelEmitter::run(raw_ostream &OS) {
|
|||
// Convert each variant of each pattern into a Matcher.
|
||||
Records.startTimer("Convert to matchers");
|
||||
std::vector<Matcher*> PatternMatchers;
|
||||
for (unsigned i = 0, e = Patterns.size(); i != e; ++i) {
|
||||
for (const PatternToMatch *PTM : Patterns) {
|
||||
for (unsigned Variant = 0; ; ++Variant) {
|
||||
if (Matcher *M = ConvertPatternToMatcher(*Patterns[i], Variant, CGP))
|
||||
if (Matcher *M = ConvertPatternToMatcher(*PTM, Variant, CGP))
|
||||
PatternMatchers.push_back(M);
|
||||
else
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue