mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
NextPowerOfTwo was already used to ensure that SmallSizePowTwo is a power
of two, no need to do it a second time (NextPowerOfTwo is idempotent). llvm-svn: 107199
This commit is contained in:
parent
85e698ca16
commit
4828790444
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user