[NFC] Remove unused funciton param
authorMax Kazantsev <mkazantsev@azul.com>
Mon, 26 Oct 2020 07:53:22 +0000 (14:53 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Mon, 26 Oct 2020 07:53:22 +0000 (14:53 +0700)
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

index b5275cf..122ee38 100644 (file)
@@ -2416,7 +2416,7 @@ bool IndVarSimplify::optimizeLoopExits(Loop *L, SCEVExpander &Rewriter) {
       // Okay, we do not know the exit count here. Can we at least prove that it
       // will remain the same within iteration space?
       auto *BI = cast<BranchInst>(ExitingBB->getTerminator());
-      auto OptimizeCond = [&](bool Inverted, const SCEV *MaxIter) {
+      auto OptimizeCond = [&](bool Inverted) {
         if (isTrivialCond(L, BI, SE, Inverted)) {
           FoldExit(ExitingBB, Inverted);
           return true;