diff options
| author | Dan Gohman <gohman@apple.com> | 2009-09-28 00:10:28 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-09-28 00:10:28 +0000 |
| commit | 2963777d0cfe1936d4816c603e520b4afc176bd5 (patch) | |
| tree | db314be40cc7cfff681d520977670d9647015cc5 /llvm/lib/Analysis | |
| parent | a29a3ffd18db17148366f158f2f7a0fb8bcce536 (diff) | |
| download | bcm5719-llvm-2963777d0cfe1936d4816c603e520b4afc176bd5.tar.gz bcm5719-llvm-2963777d0cfe1936d4816c603e520b4afc176bd5.zip | |
Move this assert to check the condition as soon as it is known.
llvm-svn: 82951
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index f3686fe67a2..e297ab42073 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -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); |

