commit | 686b173a02f572c9671fde378368134a9adec317 | [log] [tgz] |
---|---|---|
author | Jeffrey Yasskin <jyasskin@google.com> | Mon Mar 22 16:13:21 2010 +0000 |
committer | Jeffrey Yasskin <jyasskin@google.com> | Mon Mar 22 16:13:21 2010 +0000 |
tree | 23a6ff9030e337c61ab46b891c4fa3d90aea6fcf | |
parent | 12015bde72e2e92b76f49894e05ceae7573ab0f3 [diff] [blame] |
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
diff --git a/lib/Target/ARM/Thumb1InstrInfo.cpp b/lib/Target/ARM/Thumb1InstrInfo.cpp index 29ae631..ad98839 100644 --- a/lib/Target/ARM/Thumb1InstrInfo.cpp +++ b/lib/Target/ARM/Thumb1InstrInfo.cpp
@@ -200,6 +200,8 @@ // It's illegal to emit pop instruction without operands. if (NumRegs) MBB.insert(MI, &*MIB); + else + MF.DeleteMachineInstr(MIB); return true; }