diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2017-01-15 10:23:18 +0000 |
---|---|---|
committer | Serge Pavlov <sepavloff@gmail.com> | 2017-01-15 10:23:18 +0000 |
commit | 69a1a206137260ab53ce2ed5dee6bff38efd1f46 (patch) | |
tree | a2e2b169dc94923942298c59518dc280b70dc02e /lib/Analysis/LoopInfo.cpp | |
parent | a8933c2b2d9696dd2b4f81938652a6640b63133d (diff) |
Reverted: Track validity of pass results
Commits r291882 and related r291887.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index fb05e60e57d..714e0d5173f 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -731,10 +731,8 @@ void LoopInfoWrapperPass::verifyAnalysis() const { // checking by default, LoopPass has been taught to call verifyLoop manually // during loop pass sequences. if (VerifyLoopInfo) { - if (auto *Analysis = getAnalysisIfAvailable<DominatorTreeWrapperPass>()) { - auto &DT = Analysis->getDomTree(); - LI.verify(DT); - } + auto &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree(); + LI.verify(DT); } } |