Skip to content

Commit

Permalink
[llvm][NFC] Made RefCountBase constructors protected
Browse files Browse the repository at this point in the history
Matches ThreadSafeRefCountBase and forces the class to be inherited.
  • Loading branch information
njames93 committed Dec 7, 2020
1 parent dc361d5 commit a61d508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/ADT/IntrusiveRefCntPtr.h
Expand Up @@ -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;
Expand Down

0 comments on commit a61d508

Please sign in to comment.