LoopSimplifyCFG: Prefer `const auto &` to `auto &`, for clarity. NFC

llvm-svn: 273023
This commit is contained in:
Justin Bogner 2016-06-17 17:59:48 +00:00
parent aee1a0e407
commit 78eebe7756
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ static bool simplifyLoopCFG(Loop &L, DominatorTree &DT, LoopInfo &LI) {
}
PreservedAnalyses LoopSimplifyCFGPass::run(Loop &L, AnalysisManager<Loop> &AM) {
auto &FAM = AM.getResult<FunctionAnalysisManagerLoopProxy>(L).getManager();
const auto &FAM =
AM.getResult<FunctionAnalysisManagerLoopProxy>(L).getManager();
Function *F = L.getHeader()->getParent();
auto *LI = FAM.getCachedResult<LoopAnalysis>(*F);