From 8e1a600330b7e1315e9f108430f19c9424d80786 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 7 Aug 2019 11:59:44 +0000 Subject: [PATCH] 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 --- unittests/IR/ValueMapTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/IR/ValueMapTest.cpp b/unittests/IR/ValueMapTest.cpp index 9dcb4fa7fba..cfb37f0b8df 100644 --- a/unittests/IR/ValueMapTest.cpp +++ b/unittests/IR/ValueMapTest.cpp @@ -196,9 +196,9 @@ struct LockMutex : ValueMapConfig { // 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 ConfigType; + typedef LockMutex ConfigType; typename ConfigType::ExtraData Data = {&M, &CalledRAUW, &CalledDeleted}; ValueMap VM(Data); VM[this->BitcastV.get()] = 7;