mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-12 17:37:13 +00:00
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
This commit is contained in:
parent
5c12adaa8b
commit
f3f0c89f5f
@ -230,9 +230,9 @@ bool LPPassManager::runOnFunction(Function &F) {
|
|||||||
initializeAnalysisImpl(P);
|
initializeAnalysisImpl(P);
|
||||||
|
|
||||||
LoopPass *LP = dynamic_cast<LoopPass *>(P);
|
LoopPass *LP = dynamic_cast<LoopPass *>(P);
|
||||||
|
assert(LP && "Invalid LPPassManager member");
|
||||||
{
|
{
|
||||||
PassManagerPrettyStackEntry X(LP, *CurrentLoop->getHeader());
|
PassManagerPrettyStackEntry X(LP, *CurrentLoop->getHeader());
|
||||||
assert(LP && "Invalid LPPassManager member");
|
|
||||||
Timer *T = StartPassTimer(P);
|
Timer *T = StartPassTimer(P);
|
||||||
Changed |= LP->runOnLoop(CurrentLoop, *this);
|
Changed |= LP->runOnLoop(CurrentLoop, *this);
|
||||||
StopPassTimer(P, T);
|
StopPassTimer(P, T);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user