[llvm] r332317 - [NFC] Add const to method signature

Max Kazantsev via llvm-commits llvm-commits at lists.llvm.org
Mon May 14 18:21:56 PDT 2018


Author: mkazantsev
Date: Mon May 14 18:21:56 2018
New Revision: 332317

URL: http://llvm.org/viewvc/llvm-project?rev=332317&view=rev
Log:
[NFC] Add const to method signature

Modified:
    llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp?rev=332317&r1=332316&r2=332317&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp Mon May 14 18:21:56 2018
@@ -806,7 +806,7 @@ static bool CannotBeMinInLoop(const SCEV
                                      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) &&




More information about the llvm-commits mailing list