[NFC] Add missing const modifier

llvm-svn: 339844
This commit is contained in:
Max Kazantsev 2018-08-16 06:28:04 +00:00
parent 0609d1e211
commit a7415874c9
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ void LoopSafetyInfo::computeLoopSafetyInfo(Loop *CurLoop) {
/// 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();