diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-10-17 22:06:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-10-17 22:06:46 +0000 |
| commit | 145f6b3ec8425474d18869b471f76f7bb65ca225 (patch) | |
| tree | bbb345f3ff42c8565f383fa3135466df7c092687 /llvm/lib/CodeGen/MachineDebugInfo.cpp | |
| parent | 0b14f9c249391b52e8362ce95dc4568ae8ff188c (diff) | |
| download | bcm5719-llvm-145f6b3ec8425474d18869b471f76f7bb65ca225.tar.gz bcm5719-llvm-145f6b3ec8425474d18869b471f76f7bb65ca225.zip | |
Do not leak all of the SourceLineInfo objects. Do not bother mallocing each
one separately.
llvm-svn: 31022
Diffstat (limited to 'llvm/lib/CodeGen/MachineDebugInfo.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineDebugInfo.cpp b/llvm/lib/CodeGen/MachineDebugInfo.cpp index c87928f44a4..a227589e1e8 100644 --- a/llvm/lib/CodeGen/MachineDebugInfo.cpp +++ b/llvm/lib/CodeGen/MachineDebugInfo.cpp @@ -1538,7 +1538,7 @@ MachineDebugInfo::getGlobalVariablesUsing(Module &M, unsigned MachineDebugInfo::RecordLabel(unsigned Line, unsigned Column, unsigned Source) { unsigned ID = NextLabelID(); - Lines.push_back(new SourceLineInfo(Line, Column, Source, ID)); + Lines.push_back(SourceLineInfo(Line, Column, Source, ID)); return ID; } |

