Skip to content

Commit 6704960

Browse files
committed
[ADT] Use inherited ctors to forward to base. NFCI.
1 parent d4741c4 commit 6704960

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

llvm/include/llvm/ADT/SmallPtrSet.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,8 @@ class SmallPtrSetImpl : public SmallPtrSetImplBase {
346346
using ConstPtrTraits = PointerLikeTypeTraits<ConstPtrType>;
347347

348348
protected:
349-
// Constructors that forward to the base.
350-
SmallPtrSetImpl(const void **SmallStorage, const SmallPtrSetImpl &that)
351-
: SmallPtrSetImplBase(SmallStorage, that) {}
352-
SmallPtrSetImpl(const void **SmallStorage, unsigned SmallSize,
353-
SmallPtrSetImpl &&that)
354-
: SmallPtrSetImplBase(SmallStorage, SmallSize, std::move(that)) {}
355-
explicit SmallPtrSetImpl(const void **SmallStorage, unsigned SmallSize)
356-
: SmallPtrSetImplBase(SmallStorage, SmallSize) {}
349+
// Forward constructors to the base.
350+
using SmallPtrSetImplBase::SmallPtrSetImplBase;
357351

358352
public:
359353
using iterator = SmallPtrSetIterator<PtrType>;

0 commit comments

Comments
 (0)