diff options
Diffstat (limited to 'unittests/ADT/SmallPtrSetTest.cpp')
-rw-r--r-- | unittests/ADT/SmallPtrSetTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/ADT/SmallPtrSetTest.cpp b/unittests/ADT/SmallPtrSetTest.cpp index 0070d1cbae1b..76f9cf7fb9af 100644 --- a/unittests/ADT/SmallPtrSetTest.cpp +++ b/unittests/ADT/SmallPtrSetTest.cpp @@ -28,7 +28,7 @@ TEST(SmallPtrSetTest, Assignment) { (s2 = s1).insert(&buf[2]); // Self assign as well. - (s2 = s2).insert(&buf[3]); + (s2 = static_cast<SmallPtrSet<int *, 4> &>(s2)).insert(&buf[3]); s1 = s2; EXPECT_EQ(4U, s1.size()); @@ -56,7 +56,7 @@ TEST(SmallPtrSetTest, GrowthTest) { SmallPtrSet<int *, 4> s; typedef SmallPtrSet<int *, 4>::iterator iter; - + s.insert(&buf[0]); s.insert(&buf[1]); s.insert(&buf[2]); @@ -299,7 +299,7 @@ TEST(SmallPtrSetTest, dereferenceAndIterate) { // Sort. We should hit the first element just once and the final element N // times. - std::sort(std::begin(Found), std::end(Found)); + llvm::sort(std::begin(Found), std::end(Found)); for (auto F = std::begin(Found), E = std::end(Found); F != E; ++F) EXPECT_EQ(F - Found + 1, *F); } |