mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
remove unnecessary casts; NFCI
llvm-svn: 239678
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user