projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a6ea83
)
Do not leak argument's DbgVariables.
author
Devang Patel
<dpatel@apple.com>
Fri, 22 Apr 2011 18:09:57 +0000
(18:09 +0000)
committer
Devang Patel
<dpatel@apple.com>
Fri, 22 Apr 2011 18:09:57 +0000
(18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130004
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 21900c260d531d4653105b72599e0709c602e454..eb6f28f52cdef1cc9c2fcc8234f00adcffe5eb6d 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
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();