llvm.org GIT mirror llvm / fa72340
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 Jeffrey Yasskin 10 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
199199 // It's illegal to emit pop instruction without operands.
200200 if (NumRegs)
201201 MBB.insert(MI, &*MIB);
202 else
203 MF.DeleteMachineInstr(MIB);
202204
203205 return true;
204206 }