diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-07 11:59:44 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-07 11:59:44 +0000 |
| commit | e57b60f321024064353b46489cfb25ee01fd55d7 (patch) | |
| tree | b71a61770bccc543c2d25ab846ea7e8acbb1cd34 /llvm/unittests | |
| parent | 45ee93323ba69b3ad01e9a9a70c6e61d5f9d2df5 (diff) | |
| download | bcm5719-llvm-e57b60f321024064353b46489cfb25ee01fd55d7.tar.gz bcm5719-llvm-e57b60f321024064353b46489cfb25ee01fd55d7.zip | |
Replace non-recursive sys::Mutex users with std::mutex
Also remove a use of sys::MutexImpl, that's just evil. No functionality
change intended.
llvm-svn: 368157
Diffstat (limited to 'llvm/unittests')
| -rw-r--r-- | llvm/unittests/IR/ValueMapTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/IR/ValueMapTest.cpp b/llvm/unittests/IR/ValueMapTest.cpp index 9dcb4fa7fba..cfb37f0b8df 100644 --- a/llvm/unittests/IR/ValueMapTest.cpp +++ b/llvm/unittests/IR/ValueMapTest.cpp @@ -196,9 +196,9 @@ struct LockMutex : ValueMapConfig<KeyT, MutexT> { // FIXME: These tests started failing on Windows. #if LLVM_ENABLE_THREADS && !defined(_WIN32) TYPED_TEST(ValueMapTest, LocksMutex) { - sys::Mutex M(false); // Not recursive. + std::mutex M; bool CalledRAUW = false, CalledDeleted = false; - typedef LockMutex<TypeParam*, sys::Mutex> ConfigType; + typedef LockMutex<TypeParam*, std::mutex> ConfigType; typename ConfigType::ExtraData Data = {&M, &CalledRAUW, &CalledDeleted}; ValueMap<TypeParam*, int, ConfigType> VM(Data); VM[this->BitcastV.get()] = 7; |

