diff --git a/llvm/unittests/ADT/SmallVectorTest.cpp b/llvm/unittests/ADT/SmallVectorTest.cpp index 2d2668aca949..95bf33e5bfba 100644 --- a/llvm/unittests/ADT/SmallVectorTest.cpp +++ b/llvm/unittests/ADT/SmallVectorTest.cpp @@ -143,6 +143,7 @@ struct NonCopyable { NonCopyable() {} NonCopyable(NonCopyable &&) {} NonCopyable &operator=(NonCopyable &&) { return *this; } +private: NonCopyable(const NonCopyable &) LLVM_DELETED_FUNCTION; NonCopyable &operator=(const NonCopyable &) LLVM_DELETED_FUNCTION; };