mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-20 10:30:03 +00:00
Don't try to set an EFLAGS operand to dead if no instruction was created.
This fixes a bug introduced by r61215. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85b0edec46
commit
d293e0d2dc
@ -412,11 +412,13 @@ eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The EFLAGS implicit def is dead.
|
if (New) {
|
||||||
New->getOperand(3).setIsDead();
|
// The EFLAGS implicit def is dead.
|
||||||
|
New->getOperand(3).setIsDead();
|
||||||
|
|
||||||
// Replace the pseudo instruction with a new instruction...
|
// Replace the pseudo instruction with a new instruction...
|
||||||
if (New) MBB.insert(I, New);
|
MBB.insert(I, New);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (I->getOpcode() == getCallFrameDestroyOpcode()) {
|
} else if (I->getOpcode() == getCallFrameDestroyOpcode()) {
|
||||||
// If we are performing frame pointer elimination and if the callee pops
|
// If we are performing frame pointer elimination and if the callee pops
|
||||||
|
Loading…
Reference in New Issue
Block a user