diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 98e8ee55d38..414769bff74 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -222,7 +222,7 @@ bool LPPassManager::runOnFunction(Function &F) { StartPassTimer(P); LoopPass *LP = dynamic_cast(P); assert (LP && "Invalid LPPassManager member"); - LP->runOnLoop(CurrentLoop, *this); + Changed |= LP->runOnLoop(CurrentLoop, *this); StopPassTimer(P); if (Changed)