[llvm] 6704960 - [ADT] Use inherited ctors to forward to base. NFCI.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 17 05:39:26 PST 2020
Author: Benjamin Kramer
Date: 2020-02-17T14:39:15+01:00
New Revision: 6704960f7c282714d5963aad8f7b379fa13289ea
URL: https://github.com/llvm/llvm-project/commit/6704960f7c282714d5963aad8f7b379fa13289ea
DIFF: https://github.com/llvm/llvm-project/commit/6704960f7c282714d5963aad8f7b379fa13289ea.diff
LOG: [ADT] Use inherited ctors to forward to base. NFCI.
Added:
Modified:
llvm/include/llvm/ADT/SmallPtrSet.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/SmallPtrSet.h b/llvm/include/llvm/ADT/SmallPtrSet.h
index 1d8280063c80..113701ffd1e1 100644
--- a/llvm/include/llvm/ADT/SmallPtrSet.h
+++ b/llvm/include/llvm/ADT/SmallPtrSet.h
@@ -346,14 +346,8 @@ class SmallPtrSetImpl : public SmallPtrSetImplBase {
using ConstPtrTraits = PointerLikeTypeTraits<ConstPtrType>;
protected:
- // Constructors that forward to the base.
- SmallPtrSetImpl(const void **SmallStorage, const SmallPtrSetImpl &that)
- : SmallPtrSetImplBase(SmallStorage, that) {}
- SmallPtrSetImpl(const void **SmallStorage, unsigned SmallSize,
- SmallPtrSetImpl &&that)
- : SmallPtrSetImplBase(SmallStorage, SmallSize, std::move(that)) {}
- explicit SmallPtrSetImpl(const void **SmallStorage, unsigned SmallSize)
- : SmallPtrSetImplBase(SmallStorage, SmallSize) {}
+ // Forward constructors to the base.
+ using SmallPtrSetImplBase::SmallPtrSetImplBase;
public:
using iterator = SmallPtrSetIterator<PtrType>;
More information about the llvm-commits
mailing list