aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-12-10 03:35:18 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-12-10 03:35:18 +0000
commit3e1980d0d56d7f7570e5c3000233bc21848ae0c6 (patch)
treeb45c84342ac6c5b1337343a16f7b4f2d4615d901 /lib
parentd606f5bd5c01f45a90a73201f89e5ae92597f628 (diff)
downloadexternal_llvm-3e1980d0d56d7f7570e5c3000233bc21848ae0c6.zip
external_llvm-3e1980d0d56d7f7570e5c3000233bc21848ae0c6.tar.gz
external_llvm-3e1980d0d56d7f7570e5c3000233bc21848ae0c6.tar.bz2
Delete the CollectorNamePool if it should become empty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Function.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index 18effea..856385b 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -414,6 +414,10 @@ void Function::clearCollector() {
if (CollectorNames->empty()) {
delete CollectorNames;
CollectorNames = 0;
+ if (CollectorNamePool->empty()) {
+ delete CollectorNamePool;
+ CollectorNamePool = 0;
+ }
}
}
}