diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-10 03:35:18 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-10 03:35:18 +0000 |
commit | 53c34b1db978f1820677f410c6f3f59046ffa4c0 (patch) | |
tree | b45c84342ac6c5b1337343a16f7b4f2d4615d901 /lib/VMCore/Function.cpp | |
parent | e754abea467fed5bbc4f53c4e0a989bb4df7240f (diff) | |
download | external_llvm-53c34b1db978f1820677f410c6f3f59046ffa4c0.zip external_llvm-53c34b1db978f1820677f410c6f3f59046ffa4c0.tar.gz external_llvm-53c34b1db978f1820677f410c6f3f59046ffa4c0.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/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 4 |
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; + } } } } |