forked from OSchip/llvm-project
Move this assert to check the condition as soon as it is known.
llvm-svn: 82951
This commit is contained in:
parent
a29a3ffd18
commit
2963777d0c
|
@ -230,9 +230,9 @@ bool LPPassManager::runOnFunction(Function &F) {
|
|||
initializeAnalysisImpl(P);
|
||||
|
||||
LoopPass *LP = dynamic_cast<LoopPass *>(P);
|
||||
assert(LP && "Invalid LPPassManager member");
|
||||
{
|
||||
PassManagerPrettyStackEntry X(LP, *CurrentLoop->getHeader());
|
||||
assert(LP && "Invalid LPPassManager member");
|
||||
Timer *T = StartPassTimer(P);
|
||||
Changed |= LP->runOnLoop(CurrentLoop, *this);
|
||||
StopPassTimer(P, T);
|
||||
|
|
Loading…
Reference in New Issue