diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:36:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-23 16:36:11 +0000 |
commit | 6ee2cf5d89f1695e229926ecee821e1a22759617 (patch) | |
tree | c51cccc2d47c58889c52738a191bfa3f6a2391a1 /llvm/lib/CodeGen | |
parent | 1d724408d0428dfcaa791618bbbe511197850d40 (diff) | |
download | bcm5719-llvm-6ee2cf5d89f1695e229926ecee821e1a22759617.tar.gz bcm5719-llvm-6ee2cf5d89f1695e229926ecee821e1a22759617.zip |
Remove unneccesary &*
llvm-svn: 5871
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp index 0c30b3d17da..5e0fb8ec725 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/llvm/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<PHINode>(&*IIt); ++IIt) { + PHINode *PN = dyn_cast<PHINode>(IIt); ++IIt) { // FIXME: This is probably wrong... Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:"); diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 7ee2dcf4578..57b34fae1f5 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/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<CallInst>(&*I)) + if (const CallInst *callInst = dyn_cast<CallInst>(I)) { unsigned numOperands = callInst->getNumOperands() - 1; int numExtra = (int)numOperands-frameInfo.getNumFixedOutgoingArgs(); |