Prevent use of the implicit copy constructor on SmallPtrSetImpl. An accidental copy...
authorCraig Topper <craig.topper@gmail.com>
Tue, 19 Aug 2014 06:57:14 +0000 (06:57 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 19 Aug 2014 06:57:14 +0000 (06:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215971 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallPtrSet.h

index 74f3fd43cec4cbd1ecfdce82410d4905b9570da7..60a028566e3f4e4859e549f8dcee66fb245c6937 100644 (file)
@@ -240,6 +240,8 @@ struct RoundUpToPowerOfTwo {
 template <typename PtrType>
 class SmallPtrSetImpl : public SmallPtrSetImplBase {
   typedef PointerLikeTypeTraits<PtrType> PtrTraits;
+
+  SmallPtrSetImpl(const SmallPtrSetImpl&) LLVM_DELETED_FUNCTION;
 protected:
   // Constructors that forward to the base.
   SmallPtrSetImpl(const void **SmallStorage, const SmallPtrSetImpl &that)