mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-01 18:33:56 +00:00
Don't leak a MachineInstruction from Thumb1InstrInfo::restoreCalleeSavedRegisters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99182 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bd85e8e3ad
commit
fa72340ba0
@ -200,6 +200,8 @@ restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
||||
// It's illegal to emit pop instruction without operands.
|
||||
if (NumRegs)
|
||||
MBB.insert(MI, &*MIB);
|
||||
else
|
||||
MF.DeleteMachineInstr(MIB);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user