diff options
| -rw-r--r-- | llvm/include/llvm/Support/TrailingObjects.h | 6 | ||||
| -rw-r--r-- | llvm/lib/IR/AttributeImpl.h | 4 | ||||
| -rw-r--r-- | llvm/unittests/Support/TrailingObjectsTest.cpp | 2 | 
3 files changed, 1 insertions, 11 deletions
diff --git a/llvm/include/llvm/Support/TrailingObjects.h b/llvm/include/llvm/Support/TrailingObjects.h index 2bd25ace4f5..6c721f267be 100644 --- a/llvm/include/llvm/Support/TrailingObjects.h +++ b/llvm/include/llvm/Support/TrailingObjects.h @@ -290,13 +290,9 @@ class TrailingObjects : private trailing_objects_internal::TrailingObjectsImpl<    }  public: -  // Make this (privately inherited) member public. +  // make this (privately inherited) class public.    using ParentType::OverloadToken; -  /// Disable sized deallocation for all objects with trailing object storage; -  /// the inferred size will typically not be correct. -  void operator delete(void *P) { return ::operator delete(P); } -    /// Returns a pointer to the trailing object array of the given type    /// (which must be one of those specified in the class template). The    /// array may have zero or more elements in it. diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h index 1b13134d37d..ca7ae5cbb29 100644 --- a/llvm/lib/IR/AttributeImpl.h +++ b/llvm/lib/IR/AttributeImpl.h @@ -171,8 +171,6 @@ class AttributeSetNode final    void operator=(const AttributeSetNode &) = delete;    AttributeSetNode(const AttributeSetNode &) = delete;  public: -  using TrailingObjects<AttributeSetNode, Attribute>::operator delete; -    static AttributeSetNode *get(LLVMContext &C, ArrayRef<Attribute> Attrs);    bool hasAttribute(Attribute::AttrKind Kind) const { @@ -268,8 +266,6 @@ public:      }    } -  using TrailingObjects<AttributeSetImpl, IndexAttrPair>::operator delete; -    /// \brief Get the context that created this AttributeSetImpl.    LLVMContext &getContext() { return Context; } diff --git a/llvm/unittests/Support/TrailingObjectsTest.cpp b/llvm/unittests/Support/TrailingObjectsTest.cpp index 92cdd6d3824..170cbc372b8 100644 --- a/llvm/unittests/Support/TrailingObjectsTest.cpp +++ b/llvm/unittests/Support/TrailingObjectsTest.cpp @@ -34,7 +34,6 @@ public:      void *Mem = ::operator new(totalSizeToAlloc<short>(NumShorts));      return new (Mem) Class1(ShortArray, NumShorts);    } -  using TrailingObjects::operator delete;    short get(unsigned Num) const { return getTrailingObjects<short>()[Num]; } @@ -79,7 +78,6 @@ public:        *C->getTrailingObjects<double>() = D;      return C;    } -  using TrailingObjects::operator delete;    short getShort() const {      if (!HasShort)  | 

