aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/SmallPtrSet.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-07-17 02:16:12 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-07-17 02:16:12 +0000
commit845b31de0c58e1f667063170191262079d311052 (patch)
tree1a296211604a0f0f898c529c2afc02c4ced1a61f /include/llvm/ADT/SmallPtrSet.h
parenta8b9a7b92468af001e517d68be22fe41ef4d15e1 (diff)
downloadexternal_llvm-845b31de0c58e1f667063170191262079d311052.tar.gz
external_llvm-845b31de0c58e1f667063170191262079d311052.tar.bz2
external_llvm-845b31de0c58e1f667063170191262079d311052.zip
Unbreak the build by putting calls to free into the implementation file and
having that implementation file #include <cstdlib>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SmallPtrSet.h')
-rw-r--r--include/llvm/ADT/SmallPtrSet.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h
index 27cc5535c1..27c84593b1 100644
--- a/include/llvm/ADT/SmallPtrSet.h
+++ b/include/llvm/ADT/SmallPtrSet.h
@@ -67,10 +67,7 @@ public:
CurArray[SmallSize] = 0;
clear();
}
- ~SmallPtrSetImpl() {
- if (!isSmall())
- free(CurArray);
- }
+ ~SmallPtrSetImpl();
bool empty() const { return size() == 0; }
unsigned size() const { return NumElements; }