diff --git a/include/llvm/ADT/IntrusiveRefCntPtr.h b/include/llvm/ADT/IntrusiveRefCntPtr.h index aa7ccdcf9c7..c46ce9a1598 100644 --- a/include/llvm/ADT/IntrusiveRefCntPtr.h +++ b/include/llvm/ADT/IntrusiveRefCntPtr.h @@ -99,7 +99,7 @@ namespace llvm { /// management of reference counts. template class ThreadSafeRefCountedBase { - mutable std::atomic_int RefCount; + mutable std::atomic RefCount; protected: ThreadSafeRefCountedBase() : RefCount(0) {}