From a61d5084735a6990d895825262d4870ede0535ef Mon Sep 17 00:00:00 2001 From: Nathan James Date: Mon, 7 Dec 2020 20:23:11 +0000 Subject: [PATCH] [llvm][NFC] Made RefCountBase constructors protected Matches ThreadSafeRefCountBase and forces the class to be inherited. --- llvm/include/llvm/ADT/IntrusiveRefCntPtr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h b/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h index 7e65853..173fad3 100644 --- a/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h +++ b/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h @@ -70,7 +70,7 @@ namespace llvm { template class RefCountedBase { mutable unsigned RefCount = 0; -public: +protected: RefCountedBase() = default; RefCountedBase(const RefCountedBase &) {} RefCountedBase &operator=(const RefCountedBase &) = delete; -- 2.7.4