[llvm][NFC] Made RefCountBase constructors protected
authorNathan James <n.james93@hotmail.co.uk>
Mon, 7 Dec 2020 20:23:11 +0000 (20:23 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Mon, 7 Dec 2020 20:23:11 +0000 (20:23 +0000)
Matches ThreadSafeRefCountBase and forces the class to be inherited.

llvm/include/llvm/ADT/IntrusiveRefCntPtr.h

index 7e65853..173fad3 100644 (file)
@@ -70,7 +70,7 @@ namespace llvm {
 template <class Derived> class RefCountedBase {
   mutable unsigned RefCount = 0;
 
-public:
+protected:
   RefCountedBase() = default;
   RefCountedBase(const RefCountedBase &) {}
   RefCountedBase &operator=(const RefCountedBase &) = delete;