diff options
Diffstat (limited to 'include/llvm/Support/RWMutex.h')
-rw-r--r-- | include/llvm/Support/RWMutex.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Support/RWMutex.h b/include/llvm/Support/RWMutex.h index b80b8557576bf..4be9313377659 100644 --- a/include/llvm/Support/RWMutex.h +++ b/include/llvm/Support/RWMutex.h @@ -70,14 +70,16 @@ namespace llvm /// @name Platform Dependent Data /// @{ private: +#if defined(LLVM_ENABLE_THREADS) && LLVM_ENABLE_THREADS != 0 void* data_; ///< We don't know what the data will be +#endif /// @} /// @name Do Not Implement /// @{ private: - RWMutexImpl(const RWMutexImpl & original) LLVM_DELETED_FUNCTION; - void operator=(const RWMutexImpl &) LLVM_DELETED_FUNCTION; + RWMutexImpl(const RWMutexImpl & original) = delete; + void operator=(const RWMutexImpl &) = delete; /// @} }; |