summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-09-29 11:24:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-09-29 11:24:02 +0000
commit41fe88e7b46331362becd01c5cf9c18aee923a80 (patch)
treee15914ca8ea936f9451f26d33f010e78b9893648 /llvm/lib/DebugInfo
parentc3c807b3bff305ab4befce71aca574bcd08853f3 (diff)
downloadbcm5719-llvm-41fe88e7b46331362becd01c5cf9c18aee923a80.tar.gz
bcm5719-llvm-41fe88e7b46331362becd01c5cf9c18aee923a80.zip
Deallocate type units when destroying a DWARFContext.
llvm-svn: 191637
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARFContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp
index f8234e93c58..df4633d2c05 100644
--- a/llvm/lib/DebugInfo/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARFContext.cpp
@@ -25,6 +25,7 @@ typedef DWARFDebugLine::LineTable DWARFLineTable;
DWARFContext::~DWARFContext() {
DeleteContainerPointers(CUs);
+ DeleteContainerPointers(TUs);
DeleteContainerPointers(DWOCUs);
}
OpenPOWER on IntegriCloud