Fix build breakage caused by change to ValueMapTest.
authorZachary Turner <zturner@google.com>
Tue, 17 Jun 2014 00:38:40 +0000 (00:38 +0000)
committerZachary Turner <zturner@google.com>
Tue, 17 Jun 2014 00:38:40 +0000 (00:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211083 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/IR/ValueMapTest.cpp

index d480865805c1346d9ff08ad84bf7265d0543e8d5..248740aeb726033f02c1e519af682e4c3e661452 100644 (file)
@@ -180,7 +180,7 @@ TYPED_TEST(ValueMapTest, ConfiguredCollisionBehavior) {
 template<typename KeyT, typename MutexT>
 struct LockMutex : ValueMapConfig<KeyT, MutexT> {
   struct ExtraData {
-    mutex_type *M;
+    MutexT *M;
     bool *CalledRAUW;
     bool *CalledDeleted;
   };
@@ -192,7 +192,7 @@ struct LockMutex : ValueMapConfig<KeyT, MutexT> {
     *Data.CalledDeleted = true;
     EXPECT_FALSE(Data.M->tryacquire()) << "Mutex should already be locked.";
   }
-  static mutex_type *getMutex(const ExtraData &Data) { return Data.M; }
+  static MutexT *getMutex(const ExtraData &Data) { return Data.M; }
 };
 #if LLVM_ENABLE_THREADS
 TYPED_TEST(ValueMapTest, LocksMutex) {