mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Prevent use of the implicit copy constructor on SmallPtrSetImpl. An accidental copy caused my SmallPtrSet->SmallPtrSetImpl conversion commit to fail the other day.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215971 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -240,6 +240,8 @@ struct RoundUpToPowerOfTwo {
|
|||||||
template <typename PtrType>
|
template <typename PtrType>
|
||||||
class SmallPtrSetImpl : public SmallPtrSetImplBase {
|
class SmallPtrSetImpl : public SmallPtrSetImplBase {
|
||||||
typedef PointerLikeTypeTraits<PtrType> PtrTraits;
|
typedef PointerLikeTypeTraits<PtrType> PtrTraits;
|
||||||
|
|
||||||
|
SmallPtrSetImpl(const SmallPtrSetImpl&) LLVM_DELETED_FUNCTION;
|
||||||
protected:
|
protected:
|
||||||
// Constructors that forward to the base.
|
// Constructors that forward to the base.
|
||||||
SmallPtrSetImpl(const void **SmallStorage, const SmallPtrSetImpl &that)
|
SmallPtrSetImpl(const void **SmallStorage, const SmallPtrSetImpl &that)
|
||||||
|
Reference in New Issue
Block a user