llvm.org GIT mirror llvm / be5c5d7
Work around MSVC bug in IntrusiveRefCntPtr.h The build was failing with: error C2664: 'std::atomic_int::atomic_int(const std::atomic_int &)' : cannot convert argument 1 from 'int' to 'const std::atomic_int &' Apparently "std::atomic_int x(0)" doesn't work, but "std::atomic<int> x(0)" does. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202988 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9898 /// management of reference counts.
9999 template
100100 class ThreadSafeRefCountedBase {
101 mutable std::atomic_int RefCount;
101 mutable std::atomic RefCount;
102102
103103 protected:
104104 ThreadSafeRefCountedBase() : RefCount(0) {}