[llvm][NFC] Made RefCountBase constructors protected

Matches ThreadSafeRefCountBase and forces the class to be inherited.
This commit is contained in:
Nathan James 2020-12-07 20:23:11 +00:00
parent dc361d5c2a
commit a61d508473
No known key found for this signature in database
GPG Key ID: CC007AFCDA90AA5F
1 changed files with 1 additions and 1 deletions

View 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;