[llvm] r339844 - [NFC] Add missing const modifier
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 15 23:28:04 PDT 2018
Author: mkazantsev
Date: Wed Aug 15 23:28:04 2018
New Revision: 339844
URL: http://llvm.org/viewvc/llvm-project?rev=339844&view=rev
Log:
[NFC] Add missing const modifier
Modified:
llvm/trunk/lib/Analysis/MustExecute.cpp
Modified: llvm/trunk/lib/Analysis/MustExecute.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MustExecute.cpp?rev=339844&r1=339843&r2=339844&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MustExecute.cpp (original)
+++ llvm/trunk/lib/Analysis/MustExecute.cpp Wed Aug 15 23:28:04 2018
@@ -58,7 +58,7 @@ void LoopSafetyInfo::computeLoopSafetyIn
/// Return true if we can prove that the given ExitBlock is not reached on the
/// first iteration of the given loop. That is, the backedge of the loop must
/// be executed before the ExitBlock is executed in any dynamic execution trace.
-static bool CanProveNotTakenFirstIteration(BasicBlock *ExitBlock,
+static bool CanProveNotTakenFirstIteration(const BasicBlock *ExitBlock,
const DominatorTree *DT,
const Loop *CurLoop) {
auto *CondExitBlock = ExitBlock->getSinglePredecessor();
More information about the llvm-commits
mailing list