summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
index 92dc21456e5..aa7c2b31447 100644
--- a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
@@ -806,7 +806,7 @@ static bool CannotBeMinInLoop(const SCEV *BoundSCEV, Loop *L,
SE.getConstant(Min));
}
-static bool isKnownNonNegativeInLoop(const SCEV *BoundSCEV, Loop *L,
+static bool isKnownNonNegativeInLoop(const SCEV *BoundSCEV, const Loop *L,
ScalarEvolution &SE) {
const SCEV *Zero = SE.getZero(BoundSCEV->getType());
return SE.isAvailableAtLoopEntry(BoundSCEV, L) &&
OpenPOWER on IntegriCloud