MachineBasicBlock: Avoid copy in skipDebugInstructions{Forward,Backward}, NFC

This commit is contained in:
Vedant Kumar 2020-04-23 09:48:47 -07:00
parent a88025672f
commit 517f0f14bf
1 changed files with 2 additions and 2 deletions

View File

@ -1046,7 +1046,7 @@ public:
template<typename IterT>
inline IterT skipDebugInstructionsForward(IterT It, IterT End) {
while (It != End && It->isDebugInstr())
It++;
++It;
return It;
}
@ -1057,7 +1057,7 @@ inline IterT skipDebugInstructionsForward(IterT It, IterT End) {
template<class IterT>
inline IterT skipDebugInstructionsBackward(IterT It, IterT Begin) {
while (It != Begin && It->isDebugInstr())
It--;
--It;
return It;
}