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 | a0fcc3ee3fb48553bcf12f471bdf24888a93a123 (patch) | |
tree | 3ece388af4b04e682e0707672d330fc0dcad0beb /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 2f86362af8a404d326acd85c4803d5538c47b689 (diff) |
remove some dead code identified by coverity
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index fb518b16fb..ecd1471b4e 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<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) |