]> granicus.if.org Git - llvm/commitdiff
LoopSimplifyCFG: Prefer `const auto &` to `auto &`, for clarity. NFC
authorJustin Bogner <mail@justinbogner.com>
Fri, 17 Jun 2016 17:59:48 +0000 (17:59 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 17 Jun 2016 17:59:48 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273023 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopSimplifyCFG.cpp

index 3de5832ae2b0469811a4b623fc5f79670a507c24..ec227932c09e5d2e5c5a3f45fa80312277017262 100644 (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);