Remove unnecessary getAnalysis call [NFC]

llvm-svn: 259500
This commit is contained in:
Johannes Doerfert 2016-02-02 14:14:20 +00:00
parent 9181785a0c
commit c36d39b7a8
1 changed files with 1 additions and 2 deletions

View File

@ -3896,8 +3896,7 @@ void ScopInfo::buildAccessFunctions(Region &R, BasicBlock &BB,
bool IsExitBlock) {
// We do not build access functions for error blocks, as they may contain
// instructions we can not model.
DominatorTree &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
if (isErrorBlock(BB, R, *LI, DT) && !IsExitBlock)
if (isErrorBlock(BB, R, *LI, *DT) && !IsExitBlock)
return;
Loop *L = LI->getLoopFor(&BB);