From: Benjamin Kramer Date: Wed, 7 Aug 2019 11:59:44 +0000 (+0000) Subject: Replace non-recursive sys::Mutex users with std::mutex X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c587405416ab2ec527d651cb700a1b6a0d23ee3;p=llvm Replace non-recursive sys::Mutex users with std::mutex Also remove a use of sys::MutexImpl, that's just evil. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368157 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;