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:
parent
9e65ba4423
commit
d3999efab6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user