diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index fb518b16fbb..ecd1471b4e3 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -118,7 +118,7 @@ static bool CanPropagatePredecessorsForPHIs(BasicBlock *BB, BasicBlock *Succ) { // If the PHI nodes in BB are only used by instructions in Succ, we are ok if // BB and Succ have no common predecessors. - for (BasicBlock::iterator I = BB->begin(); isa(I) && IsSafe; ++I) { + for (BasicBlock::iterator I = BB->begin(); isa(I); ++I) { PHINode *PN = cast(I); for (Value::use_iterator UI = PN->use_begin(), E = PN->use_end(); UI != E; ++UI)