From 2ee82e05e3e41fa23951d3503db5483a36dc3ae3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 23 Apr 2003 16:36:11 +0000 Subject: [PATCH] Remove unneccesary &* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5871 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/InductionVariable.cpp | 2 +- lib/CodeGen/InstrSelection/InstrSelection.cpp | 2 +- lib/CodeGen/MachineFunction.cpp | 2 +- lib/Target/CBackend/CBackend.cpp | 2 +- lib/Target/CBackend/Writer.cpp | 2 +- lib/Target/SparcV9/InstrSelection/InstrSelection.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Analysis/InductionVariable.cpp b/lib/Analysis/InductionVariable.cpp index c71033e4607..321c237c872 100644 --- a/lib/Analysis/InductionVariable.cpp +++ b/lib/Analysis/InductionVariable.cpp @@ -213,7 +213,7 @@ Value* InductionVariable::getExecutionCount(LoopInfo *LoopInfo) { DEBUG(std::cerr << "no terminator instruction!"); return NULL; } - SetCondInst *SCI = dyn_cast(&*B->getCondition()); + SetCondInst *SCI = dyn_cast(B->getCondition()); if (SCI && InductionType == Cannonical) { DEBUG(std::cerr << "sci:" << *SCI); diff --git a/lib/CodeGen/InstrSelection/InstrSelection.cpp b/lib/CodeGen/InstrSelection/InstrSelection.cpp index 0c30b3d17da..5e0fb8ec725 100644 --- a/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -182,7 +182,7 @@ InstructionSelection::InsertCodeForPhis(Function &F) MachineFunction &MF = MachineFunction::get(&F); for (MachineFunction::iterator BB = MF.begin(); BB != MF.end(); ++BB) { for (BasicBlock::iterator IIt = BB->getBasicBlock()->begin(); - PHINode *PN = dyn_cast(&*IIt); ++IIt) { + PHINode *PN = dyn_cast(IIt); ++IIt) { // FIXME: This is probably wrong... Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:"); diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index 7ee2dcf4578..57b34fae1f5 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -247,7 +247,7 @@ ComputeMaxOptionalArgsSize(const TargetMachine& target, const Function *F, for (Function::const_iterator BB = F->begin(), BBE = F->end(); BB !=BBE; ++BB) for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I) - if (const CallInst *callInst = dyn_cast(&*I)) + if (const CallInst *callInst = dyn_cast(I)) { unsigned numOperands = callInst->getNumOperands() - 1; int numExtra = (int)numOperands-frameInfo.getNumFixedOutgoingArgs(); diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 6fe00ee1afc..dfe5ec2f58a 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -896,7 +896,7 @@ static bool isGotoCodeNeccessary(BasicBlock *From, BasicBlock *To) { void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ, unsigned Indent) { for (BasicBlock::iterator I = Succ->begin(); - PHINode *PN = dyn_cast(&*I); ++I) { + PHINode *PN = dyn_cast(I); ++I) { // now we have to do the printing Out << string(Indent, ' '); outputLValue(PN); diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 6fe00ee1afc..dfe5ec2f58a 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -896,7 +896,7 @@ static bool isGotoCodeNeccessary(BasicBlock *From, BasicBlock *To) { void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ, unsigned Indent) { for (BasicBlock::iterator I = Succ->begin(); - PHINode *PN = dyn_cast(&*I); ++I) { + PHINode *PN = dyn_cast(I); ++I) { // now we have to do the printing Out << string(Indent, ' '); outputLValue(PN); diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp index 0c30b3d17da..5e0fb8ec725 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp @@ -182,7 +182,7 @@ InstructionSelection::InsertCodeForPhis(Function &F) MachineFunction &MF = MachineFunction::get(&F); for (MachineFunction::iterator BB = MF.begin(); BB != MF.end(); ++BB) { for (BasicBlock::iterator IIt = BB->getBasicBlock()->begin(); - PHINode *PN = dyn_cast(&*IIt); ++IIt) { + PHINode *PN = dyn_cast(IIt); ++IIt) { // FIXME: This is probably wrong... Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:");