We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2f90cf + 32ca0fd commit 932a480Copy full SHA for 932a480
tools/SourceKit/include/SourceKit/Support/ThreadSafeRefCntPtr.h
@@ -120,7 +120,8 @@ class ThreadSafeRefCntPtr : ThreadSafeRefCntPtrImpl {
120
}
121
122
operator llvm::IntrusiveRefCntPtr<T>() const {
123
- llvm::sys::ScopedLock L(*getMutex((void*)this));
+ llvm::sys::ScopedLock L(*getMutex(
124
+ reinterpret_cast<void *>(const_cast<ThreadSafeRefCntPtr *>(this))));
125
llvm::IntrusiveRefCntPtr<T> Ref(Obj.load());
126
return Ref;
127
0 commit comments