diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-05-14 18:45:44 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-05-14 18:45:44 +0000 |
| commit | 35515557c7615e1188fd853064828badd720a3ff (patch) | |
| tree | 57a10e96dad600640c86b2d17796bd851e3963d4 /llvm/lib/Transforms | |
| parent | 44f90c93e64d756d3dae0a3e900f98d1e24b2dd5 (diff) | |
| download | bcm5719-llvm-35515557c7615e1188fd853064828badd720a3ff.tar.gz bcm5719-llvm-35515557c7615e1188fd853064828badd720a3ff.zip | |
remove some dead code identified by coverity
llvm-svn: 28289
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index fb518b16fbb..ecd1471b4e3 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/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<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) |

