aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/ValueMapTest.cpp
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2014-08-23 22:49:22 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2014-08-23 22:49:22 +0000
commit13044d1cc509cfff90ff37532353b16c676b50ca (patch)
tree49682bf4ce953c99ec8032413c04fdb141b20d6a /llvm/unittests/IR/ValueMapTest.cpp
parent4704ffe1641bd7d7d9366dacb179df0f222e5aa5 (diff)
downloadllvm-13044d1cc509cfff90ff37532353b16c676b50ca.zip
llvm-13044d1cc509cfff90ff37532353b16c676b50ca.tar.gz
llvm-13044d1cc509cfff90ff37532353b16c676b50ca.tar.bz2
Support: make LLVM Mutexes STL-compatible
Use lock/unlock() convention instead of acquire/release(). llvm-svn: 216336
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 0b7198f..a6bad71 100644
--- a/llvm/unittests/IR/ValueMapTest.cpp
+++ b/llvm/unittests/IR/ValueMapTest.cpp
@@ -186,11 +186,11 @@ struct LockMutex : ValueMapConfig<KeyT, MutexT> {
};
static void onRAUW(const ExtraData &Data, KeyT Old, KeyT New) {
*Data.CalledRAUW = true;
- EXPECT_FALSE(Data.M->tryacquire()) << "Mutex should already be locked.";
+ EXPECT_FALSE(Data.M->try_lock()) << "Mutex should already be locked.";
}
static void onDelete(const ExtraData &Data, KeyT Old) {
*Data.CalledDeleted = true;
- EXPECT_FALSE(Data.M->tryacquire()) << "Mutex should already be locked.";
+ EXPECT_FALSE(Data.M->try_lock()) << "Mutex should already be locked.";
}
static MutexT *getMutex(const ExtraData &Data) { return Data.M; }
};