forked from OSchip/llvm-project
MachineBasicBlock: Avoid copy in skipDebugInstructions{Forward,Backward}, NFC
This commit is contained in:
parent
a88025672f
commit
517f0f14bf
|
@ -1046,7 +1046,7 @@ public:
|
||||||
template<typename IterT>
|
template<typename IterT>
|
||||||
inline IterT skipDebugInstructionsForward(IterT It, IterT End) {
|
inline IterT skipDebugInstructionsForward(IterT It, IterT End) {
|
||||||
while (It != End && It->isDebugInstr())
|
while (It != End && It->isDebugInstr())
|
||||||
It++;
|
++It;
|
||||||
return It;
|
return It;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1057,7 +1057,7 @@ inline IterT skipDebugInstructionsForward(IterT It, IterT End) {
|
||||||
template<class IterT>
|
template<class IterT>
|
||||||
inline IterT skipDebugInstructionsBackward(IterT It, IterT Begin) {
|
inline IterT skipDebugInstructionsBackward(IterT It, IterT Begin) {
|
||||||
while (It != Begin && It->isDebugInstr())
|
while (It != Begin && It->isDebugInstr())
|
||||||
It--;
|
--It;
|
||||||
return It;
|
return It;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue