aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCombiner.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-06-13 15:06:33 +0000
committerSanjay Patel <spatel@rotateright.com>2015-06-13 15:06:33 +0000
commit85924e5bf37724e8f14efff2e7bf59eebf7335fc (patch)
treed3320229ffb325cfca1f362fc7c45bdd0d776a22 /llvm/lib/CodeGen/MachineCombiner.cpp
parent6df6c75b61405f6a8576c863f43a73f865473846 (diff)
downloadllvm-85924e5bf37724e8f14efff2e7bf59eebf7335fc.zip
llvm-85924e5bf37724e8f14efff2e7bf59eebf7335fc.tar.gz
llvm-85924e5bf37724e8f14efff2e7bf59eebf7335fc.tar.bz2
remove unnecessary casts; NFCI
llvm-svn: 239678
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCombiner.cpp5
1 files 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();