diff options
author | dim <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
commit | 173a4f43a911175643bda81ee675e8d9269056ea (patch) | |
tree | 47df2c12b57214af6c31e47404b005675b8b7ffc /include/clang/Analysis/Support/BumpVector.h | |
parent | 88f7a7d5251a2d813460274c92decc143a11569b (diff) | |
download | FreeBSD-src-173a4f43a911175643bda81ee675e8d9269056ea.zip FreeBSD-src-173a4f43a911175643bda81ee675e8d9269056ea.tar.gz |
Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_350/final@216957
Diffstat (limited to 'include/clang/Analysis/Support/BumpVector.h')
-rw-r--r-- | include/clang/Analysis/Support/BumpVector.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Analysis/Support/BumpVector.h b/include/clang/Analysis/Support/BumpVector.h index 387e779..6d0427b 100644 --- a/include/clang/Analysis/Support/BumpVector.h +++ b/include/clang/Analysis/Support/BumpVector.h @@ -55,12 +55,12 @@ class BumpVector { public: // Default ctor - Initialize to empty. explicit BumpVector(BumpVectorContext &C, unsigned N) - : Begin(NULL), End(NULL), Capacity(NULL) { + : Begin(nullptr), End(nullptr), Capacity(nullptr) { reserve(C, N); } ~BumpVector() { - if (llvm::is_class<T>::value) { + if (std::is_class<T>::value) { // Destroy the constructed elements in the vector. destroy_range(Begin, End); } @@ -130,7 +130,7 @@ public: } void clear() { - if (llvm::is_class<T>::value) { + if (std::is_class<T>::value) { destroy_range(Begin, End); } End = Begin; @@ -223,7 +223,7 @@ void BumpVector<T>::grow(BumpVectorContext &C, size_t MinSize) { T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); // Copy the elements over. - if (llvm::is_class<T>::value) { + if (std::is_class<T>::value) { std::uninitialized_copy(Begin, End, NewElts); // Destroy the original elements. destroy_range(Begin, End); |