remove some dead code identified by coverity
authorChris Lattner <sabre@nondot.org>
Sun, 14 May 2006 18:45:44 +0000 (18:45 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 May 2006 18:45:44 +0000 (18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28289 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyCFG.cpp

index fb518b16fbb9dfc4966f2c808b04ad3fd8939e62..ecd1471b4e39317b3e1e116e27f078a47c7cede0 100644 (file)
@@ -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<PHINode>(I) && IsSafe; ++I) {
+  for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I); ++I) {
     PHINode *PN = cast<PHINode>(I);
     for (Value::use_iterator UI = PN->use_begin(), E = PN->use_end(); UI != E;
          ++UI)