summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-04-22 18:09:57 +0000
committerDevang Patel <dpatel@apple.com>2011-04-22 18:09:57 +0000
commitad45d911bb63141f0904b00c41a5f4f992f0ef33 (patch)
tree9a6655a5d7e945043aa82a236e6fa136801f6245 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent11e5c8b31a056615e3f0161d2886782145db19ae (diff)
downloadbcm5719-llvm-ad45d911bb63141f0904b00c41a5f4f992f0ef33.tar.gz
bcm5719-llvm-ad45d911bb63141f0904b00c41a5f4f992f0ef33.zip
Do not leak argument's DbgVariables.
llvm-svn: 130004
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 21900c260d5..eb6f28f52cd 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2061,7 +2061,7 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
// Clear debug info
CurrentFnDbgScope = NULL;
- CurrentFnArguments.clear();
+ DeleteContainerPointers(CurrentFnArguments);
DbgVariableToFrameIndexMap.clear();
VarToAbstractVarMap.clear();
DbgVariableToDbgInstMap.clear();
OpenPOWER on IntegriCloud