Commit 6abd78cc authored by Evgeniy Stepanov's avatar Evgeniy Stepanov
Browse files

Make DT a transitive dependency of LI.

Summary:
LoopInfoWrapperPass::verify uses DT, which means DT must be alive
even if it has no direct users.

Fixes a crash in expensive checks mode.

Reviewers: pcc, leonardchan

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64896

llvm-svn: 366388
parent 3eab4819
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1039,7 +1039,7 @@ void LoopInfoWrapperPass::verifyAnalysis() const {

void LoopInfoWrapperPass::getAnalysisUsage(AnalysisUsage &AU) const {
  AU.setPreservesAll();
  AU.addRequired<DominatorTreeWrapperPass>();
  AU.addRequiredTransitive<DominatorTreeWrapperPass>();
}

void LoopInfoWrapperPass::print(raw_ostream &OS, const Module *) const {