1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

remove some dead code identified by coverity

llvm-svn: 28289
This commit is contained in:
Chris Lattner 2006-05-14 18:45:44 +00:00
parent cf71b13e15
commit 5aa7f78065

View 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 // If the PHI nodes in BB are only used by instructions in Succ, we are ok if
// BB and Succ have no common predecessors. // 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); PHINode *PN = cast<PHINode>(I);
for (Value::use_iterator UI = PN->use_begin(), E = PN->use_end(); UI != E; for (Value::use_iterator UI = PN->use_begin(), E = PN->use_end(); UI != E;
++UI) ++UI)