From 85924e5bf37724e8f14efff2e7bf59eebf7335fc Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Sat, 13 Jun 2015 15:06:33 +0000 Subject: [PATCH] remove unnecessary casts; NFCI llvm-svn: 239678 --- llvm/lib/CodeGen/MachineCombiner.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 2.7.4