summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineDebugInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-17 22:06:46 +0000
committerChris Lattner <sabre@nondot.org>2006-10-17 22:06:46 +0000
commit145f6b3ec8425474d18869b471f76f7bb65ca225 (patch)
treebbb345f3ff42c8565f383fa3135466df7c092687 /llvm/lib/CodeGen/MachineDebugInfo.cpp
parent0b14f9c249391b52e8362ce95dc4568ae8ff188c (diff)
downloadbcm5719-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.cpp2
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;
}
OpenPOWER on IntegriCloud