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 | 1f7ba836613f713ff32349e1c08c152d0803100b (patch) | |
tree | 141c80cdb7469a2600f519e9af37bb25179f84dd /lib/Analysis | |
parent | 7265f0826dddbc1d46ad1df769a99fc81c4adfe3 (diff) | |
download | external_llvm-1f7ba836613f713ff32349e1c08c152d0803100b.zip external_llvm-1f7ba836613f713ff32349e1c08c152d0803100b.tar.gz external_llvm-1f7ba836613f713ff32349e1c08c152d0803100b.tar.bz2 |
Move this assert to check the condition as soon as it is known.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82951 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/LoopPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index f3686fe..e297ab4 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/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); |