1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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 9e65ba4423
commit d3999efab6

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);