projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c12ada
)
Move this assert to check the condition as soon as it is known.
author
Dan Gohman
<gohman@apple.com>
Mon, 28 Sep 2009 00:10:28 +0000
(
00:10
+0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 28 Sep 2009 00:10:28 +0000
(
00:10
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82951
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/LoopPass.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/LoopPass.cpp
b/lib/Analysis/LoopPass.cpp
index f3686fe67a2f1bfa9adc9157b6688c7b095adc43..e297ab420731f7976c5aad9270603c710a2ed205 100644
(file)
--- 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);