SmallPtrSet: Make destructor available for inlining

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259019 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matthias Braun 2016-01-28 04:49:14 +00:00
parent 1732754567
commit a1e9f2f407
2 changed files with 4 additions and 6 deletions

View File

@ -73,7 +73,10 @@ protected:
"Initial size must be a power of two!");
clear();
}
~SmallPtrSetImplBase();
~SmallPtrSetImplBase() {
if (!isSmall())
free(CurArray);
}
public:
typedef unsigned size_type;

View File

@ -296,8 +296,3 @@ void SmallPtrSetImplBase::swap(SmallPtrSetImplBase &RHS) {
RHS.SmallArray);
std::swap(this->NumElements, RHS.NumElements);
}
SmallPtrSetImplBase::~SmallPtrSetImplBase() {
if (!isSmall())
free(CurArray);
}