summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/ValueMapTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/IR/ValueMapTest.cpp')
-rw-r--r--llvm/unittests/IR/ValueMapTest.cpp4
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;
OpenPOWER on IntegriCloud