diff --git a/llvm/include/llvm/Analysis/MustExecute.h b/llvm/include/llvm/Analysis/MustExecute.h --- a/llvm/include/llvm/Analysis/MustExecute.h +++ b/llvm/include/llvm/Analysis/MustExecute.h @@ -469,7 +469,7 @@ /// true if \p Pred holds in every instruction. bool checkForAllContext(const Instruction *PP, const function_ref &Pred) { - for (auto EIt = begin(PP), EEnd = end(PP); EIt != EEnd; EIt++) + for (auto EIt = begin(PP), EEnd = end(PP); EIt != EEnd; ++EIt) if (!Pred(*EIt)) return false; return true;