forked from OSchip/llvm-project
[X86] No need to determine pointer when the type is already a MachineInstr*. NFCI.
Caught by cppcheck - appears to be a copy+paste typo as the other var is an iterator that does need the &* pointer operation.
This commit is contained in:
parent
43e451f9f3
commit
5eec049689
|
@ -563,8 +563,7 @@ void X86CallFrameOptimization::adjustCallSequence(MachineFunction &MF,
|
|||
unsigned NumOps = DefMov->getDesc().getNumOperands();
|
||||
for (unsigned i = NumOps - X86::AddrNumOperands; i != NumOps; ++i)
|
||||
Push->addOperand(DefMov->getOperand(i));
|
||||
Push->cloneMergedMemRefs(MF, {&*DefMov, &*Store});
|
||||
|
||||
Push->cloneMergedMemRefs(MF, {DefMov, &*Store});
|
||||
DefMov->eraseFromParent();
|
||||
} else {
|
||||
PushOpcode = Is64Bit ? X86::PUSH64r : X86::PUSH32r;
|
||||
|
|
Loading…
Reference in New Issue