diff options
Diffstat (limited to 'include/llvm/Support/Mutex.h')
-rw-r--r-- | include/llvm/Support/Mutex.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Support/Mutex.h b/include/llvm/Support/Mutex.h index 97dd501153223..0f4e61af44395 100644 --- a/include/llvm/Support/Mutex.h +++ b/include/llvm/Support/Mutex.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: - MutexImpl(const MutexImpl &) LLVM_DELETED_FUNCTION; - void operator=(const MutexImpl &) LLVM_DELETED_FUNCTION; + MutexImpl(const MutexImpl &) = delete; + void operator=(const MutexImpl &) = delete; /// @} }; |