commit | 4b904b962710124ba72a2d7da1c91e9f629b5cf7 | [log] [tgz] |
---|---|---|
author | Gordon Henriksen <gordonhenriksen@mac.com> | Mon Dec 10 03:35:18 2007 +0000 |
committer | Gordon Henriksen <gordonhenriksen@mac.com> | Mon Dec 10 03:35:18 2007 +0000 |
tree | 3cca02194e7d1a61b7a5f60ce999a0b26c0ea00d | |
parent | dc5cafb74e44ab60f351b48d3d95f405bace6190 [diff] [blame] |
Delete the CollectorNamePool if it should become empty. llvm-svn: 44775
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index 18effea..856385b 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp
@@ -414,6 +414,10 @@ if (CollectorNames->empty()) { delete CollectorNames; CollectorNames = 0; + if (CollectorNamePool->empty()) { + delete CollectorNamePool; + CollectorNamePool = 0; + } } } }