diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:37:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:37:45 +0000 |
commit | 889f620841146d6f9f935f2271e80a7dddc15e25 (patch) | |
tree | eb3b923511a1c4be6f4936462a30321f6984c395 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 6ee2cf5d89f1695e229926ecee821e1a22759617 (diff) | |
download | bcm5719-llvm-889f620841146d6f9f935f2271e80a7dddc15e25.tar.gz bcm5719-llvm-889f620841146d6f9f935f2271e80a7dddc15e25.zip |
Remove unnecesary &*'s
llvm-svn: 5872
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 25d835684b2..e1910446de2 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -40,7 +40,7 @@ static bool PropagatePredecessorsForPHIs(BasicBlock *BB, BasicBlock *Succ) { // Loop over all of the PHI nodes checking to see if there are // incompatible values coming in. for (BasicBlock::iterator I = Succ->begin(); - PHINode *PN = dyn_cast<PHINode>(&*I); ++I) { + PHINode *PN = dyn_cast<PHINode>(I); ++I) { // Loop up the entries in the PHI node for BB and for *PI if the values // coming in are non-equal, we cannot merge these two blocks (instead we // should insert a conditional move or something, then merge the @@ -56,7 +56,7 @@ static bool PropagatePredecessorsForPHIs(BasicBlock *BB, BasicBlock *Succ) { // Loop over all of the PHI nodes in the successor BB for (BasicBlock::iterator I = Succ->begin(); - PHINode *PN = dyn_cast<PHINode>(&*I); ++I) { + PHINode *PN = dyn_cast<PHINode>(I); ++I) { Value *OldVal = PN->removeIncomingValue(BB, false); assert(OldVal && "No entry in PHI for Pred BB!"); |