diff options
author | Duncan Sands <baldrick@free.fr> | 2010-06-29 20:05:34 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-06-29 20:05:34 +0000 |
commit | 05b0b44f8a7953687e73c9758d3e7851ef339be1 (patch) | |
tree | cd563879fa7bd165eb8c4aed381a8a4464d216f1 | |
parent | 190a7f4a18dc909c8ec2dbb908a55196e7098d01 (diff) | |
download | external_llvm-05b0b44f8a7953687e73c9758d3e7851ef339be1.zip external_llvm-05b0b44f8a7953687e73c9758d3e7851ef339be1.tar.gz external_llvm-05b0b44f8a7953687e73c9758d3e7851ef339be1.tar.bz2 |
NextPowerOfTwo was already used to ensure that SmallSizePowTwo is a power
of two, no need to do it a second time (NextPowerOfTwo is idempotent).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107199 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/SmallPtrSet.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h index ef08125..48637f3 100644 --- a/include/llvm/ADT/SmallPtrSet.h +++ b/include/llvm/ADT/SmallPtrSet.h @@ -236,12 +236,11 @@ class SmallPtrSet : public SmallPtrSetImpl { void *SmallArray[SmallSizePowTwo]; typedef PointerLikeTypeTraits<PtrType> PtrTraits; public: - SmallPtrSet() : SmallPtrSetImpl(NextPowerOfTwo<SmallSizePowTwo>::Val) {} + SmallPtrSet() : SmallPtrSetImpl(SmallSizePowTwo) {} SmallPtrSet(const SmallPtrSet &that) : SmallPtrSetImpl(that) {} template<typename It> - SmallPtrSet(It I, It E) - : SmallPtrSetImpl(NextPowerOfTwo<SmallSizePowTwo>::Val) { + SmallPtrSet(It I, It E) : SmallPtrSetImpl(SmallSizePowTwo) { insert(I, E); } |