From: Sanjay Patel Date: Sat, 13 Jun 2015 15:06:33 +0000 (+0000) Subject: remove unnecessary casts; NFCI X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85924e5bf37724e8f14efff2e7bf59eebf7335fc;p=platform%2Fupstream%2Fllvm.git remove unnecessary casts; NFCI llvm-svn: 239678 --- diff --git a/llvm/lib/CodeGen/MachineCombiner.cpp b/llvm/lib/CodeGen/MachineCombiner.cpp index 230c74f..9af7a65 100644 --- a/llvm/lib/CodeGen/MachineCombiner.cpp +++ b/llvm/lib/CodeGen/MachineCombiner.cpp @@ -373,8 +373,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) { InstrIdxForVirtReg) && preservesResourceLen(MBB, BlockTrace, InsInstrs, DelInstrs))) { for (auto *InstrPtr : InsInstrs) - MBB->insert((MachineBasicBlock::iterator) & MI, - (MachineInstr *)InstrPtr); + MBB->insert((MachineBasicBlock::iterator) &MI, InstrPtr); for (auto *InstrPtr : DelInstrs) InstrPtr->eraseFromParentAndMarkDBGValuesForRemoval(); @@ -390,7 +389,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) { // use for them. for (auto *InstrPtr : InsInstrs) { MachineFunction *MF = MBB->getParent(); - MF->DeleteMachineInstr((MachineInstr *)InstrPtr); + MF->DeleteMachineInstr(InstrPtr); } } InstrIdxForVirtReg.clear();