mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
allow RETI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af26d3ea03
commit
24ddc6d067
@ -493,7 +493,7 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF,
|
||||
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||
MachineBasicBlock::iterator MBBI = prior(MBB.end());
|
||||
MachineInstr *MI;
|
||||
assert(MBBI->getOpcode() == X86::RET &&
|
||||
assert((MBBI->getOpcode() == X86::RET || MBBI->getOpcode() == X86::RETI) &&
|
||||
"Can only insert epilog into returning blocks");
|
||||
|
||||
if (hasFP(MF)) {
|
||||
|
Loading…
Reference in New Issue
Block a user