Index: llvm/trunk/unittests/ADT/DenseMapTest.cpp =================================================================== --- llvm/trunk/unittests/ADT/DenseMapTest.cpp +++ llvm/trunk/unittests/ADT/DenseMapTest.cpp @@ -247,7 +247,7 @@ EXPECT_EQ(this->getValue(), copyMap[this->getKey()]); // test self-assignment. - copyMap = copyMap; + copyMap = static_cast(copyMap); EXPECT_EQ(1u, copyMap.size()); EXPECT_EQ(this->getValue(), copyMap[this->getKey()]); } @@ -262,7 +262,7 @@ EXPECT_EQ(this->getValue(Key), copyMap[this->getKey(Key)]); // test self-assignment. - copyMap = copyMap; + copyMap = static_cast(copyMap); EXPECT_EQ(5u, copyMap.size()); for (int Key = 0; Key < 5; ++Key) EXPECT_EQ(this->getValue(Key), copyMap[this->getKey(Key)]); Index: llvm/trunk/unittests/ADT/SmallPtrSetTest.cpp =================================================================== --- llvm/trunk/unittests/ADT/SmallPtrSetTest.cpp +++ llvm/trunk/unittests/ADT/SmallPtrSetTest.cpp @@ -28,7 +28,7 @@ (s2 = s1).insert(&buf[2]); // Self assign as well. - (s2 = s2).insert(&buf[3]); + (s2 = static_cast &>(s2)).insert(&buf[3]); s1 = s2; EXPECT_EQ(4U, s1.size()); @@ -56,7 +56,7 @@ SmallPtrSet s; typedef SmallPtrSet::iterator iter; - + s.insert(&buf[0]); s.insert(&buf[1]); s.insert(&buf[2]); Index: llvm/trunk/unittests/ADT/SparseBitVectorTest.cpp =================================================================== --- llvm/trunk/unittests/ADT/SparseBitVectorTest.cpp +++ llvm/trunk/unittests/ADT/SparseBitVectorTest.cpp @@ -68,7 +68,7 @@ Vec.set(23); Vec.set(234); - Vec = Vec; + Vec = static_cast &>(Vec); EXPECT_TRUE(Vec.test(23)); EXPECT_TRUE(Vec.test(234));