File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -580,8 +580,8 @@ bool MatcherGen::EmitMatcherCode(unsigned Variant) {
580
580
// checks (e.g. addrmode matches). We emit this after the structural match
581
581
// because they are generally more expensive to evaluate and more difficult to
582
582
// factor.
583
- for (unsigned i = 0 , e = MatchedComplexPatterns. size (); i != e; ++i ) {
584
- auto &N = *MatchedComplexPatterns[i] .first ;
583
+ for (const auto &MCP : MatchedComplexPatterns) {
584
+ auto &N = *MCP .first ;
585
585
586
586
// Remember where the results of this match get stuck.
587
587
if (N.isLeaf ()) {
@@ -595,7 +595,7 @@ bool MatcherGen::EmitMatcherCode(unsigned Variant) {
595
595
}
596
596
597
597
// Get the slot we recorded the value in from the name on the node.
598
- unsigned RecNodeEntry = MatchedComplexPatterns[i] .second ;
598
+ unsigned RecNodeEntry = MCP .second ;
599
599
600
600
const ComplexPattern *CP = N.getComplexPatternInfo (CGP);
601
601
assert (CP && " Not a valid ComplexPattern!" );
You can’t perform that action at this time.
0 commit comments