From e408e25132b8de8c757db1e3ddcd70432dfeb24d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 23 Apr 2003 16:37:45 +0000 Subject: Remove unnecesary &*'s git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5872 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/LoopSimplify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Transforms/Utils/LoopSimplify.cpp') diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 5a68dda1af..d5988b1652 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -132,7 +132,7 @@ BasicBlock *Preheaders::SplitBlockPredecessors(BasicBlock *BB, // if (!Preds.empty()) { // Is the loop not obviously dead? for (BasicBlock::iterator I = BB->begin(); - PHINode *PN = dyn_cast(&*I); ++I) { + PHINode *PN = dyn_cast(I); ++I) { // Create the new PHI node, insert it into NewBB at the end of the block PHINode *NewPHI = new PHINode(PN->getType(), PN->getName()+".ph", BI); @@ -160,7 +160,7 @@ BasicBlock *Preheaders::SplitBlockPredecessors(BasicBlock *BB, } else { // Otherwise the loop is dead... for (BasicBlock::iterator I = BB->begin(); - PHINode *PN = dyn_cast(&*I); ++I) + PHINode *PN = dyn_cast(I); ++I) // Insert dummy values as the incoming value... PN->addIncoming(Constant::getNullValue(PN->getType()), NewBB); } -- cgit v1.2.3-18-g5258