diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h index ef0812592be..48637f37a2c 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 PtrTraits; public: - SmallPtrSet() : SmallPtrSetImpl(NextPowerOfTwo::Val) {} + SmallPtrSet() : SmallPtrSetImpl(SmallSizePowTwo) {} SmallPtrSet(const SmallPtrSet &that) : SmallPtrSetImpl(that) {} template - SmallPtrSet(It I, It E) - : SmallPtrSetImpl(NextPowerOfTwo::Val) { + SmallPtrSet(It I, It E) : SmallPtrSetImpl(SmallSizePowTwo) { insert(I, E); }