diff --git a/llvm/include/llvm/CodeGen/MachineBasicBlock.h b/llvm/include/llvm/CodeGen/MachineBasicBlock.h index de034e1fe498..d6c7d508b535 100644 --- a/llvm/include/llvm/CodeGen/MachineBasicBlock.h +++ b/llvm/include/llvm/CodeGen/MachineBasicBlock.h @@ -1046,7 +1046,7 @@ public: template 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 inline IterT skipDebugInstructionsBackward(IterT It, IterT Begin) { while (It != Begin && It->isDebugInstr()) - It--; + --It; return It; }