File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -572,9 +572,10 @@ class MCSubRegIndexIterator {
572
572
bool isValid () const { return SRIter.isValid (); }
573
573
574
574
// / Moves to the next position.
575
- void operator ++() {
575
+ MCSubRegIndexIterator & operator ++() {
576
576
++SRIter;
577
577
++SRIndex;
578
+ return *this ;
578
579
}
579
580
};
580
581
@@ -688,9 +689,10 @@ class MCRegUnitMaskIterator {
688
689
bool isValid () const { return RUIter.isValid (); }
689
690
690
691
// / Moves to the next position.
691
- void operator ++() {
692
+ MCRegUnitMaskIterator & operator ++() {
692
693
++MaskListIter;
693
694
++RUIter;
695
+ return *this ;
694
696
}
695
697
};
696
698
@@ -728,10 +730,11 @@ class MCRegUnitRootIterator {
728
730
}
729
731
730
732
// / Preincrement to move to the next root register.
731
- void operator ++() {
733
+ MCRegUnitRootIterator & operator ++() {
732
734
assert (isValid () && " Cannot move off the end of the list." );
733
735
Reg0 = Reg1;
734
736
Reg1 = 0 ;
737
+ return *this ;
735
738
}
736
739
};
737
740
@@ -788,10 +791,11 @@ class MCRegAliasIterator {
788
791
}
789
792
}
790
793
791
- void operator ++() {
794
+ MCRegAliasIterator & operator ++() {
792
795
assert (isValid () && " Cannot move off the end of the list." );
793
796
do advance ();
794
797
while (!IncludeSelf && isValid () && *SI == Reg);
798
+ return *this ;
795
799
}
796
800
};
797
801
You can’t perform that action at this time.
0 commit comments