diff options
| author | 2019-01-27 16:42:12 +0000 | |
|---|---|---|
| committer | 2019-01-27 16:42:12 +0000 | |
| commit | b773203fb58f3ef282fb69c832d8710cab5bc82d (patch) | |
| tree | e75913f147570fbd75169647b144df85b88a038c /gnu/llvm/unittests/ADT/SmallPtrSetTest.cpp | |
| parent | tweak errno in previous (diff) | |
| download | wireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.tar.xz wireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.zip | |
Import LLVM 7.0.1 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/unittests/ADT/SmallPtrSetTest.cpp')
| -rw-r--r-- | gnu/llvm/unittests/ADT/SmallPtrSetTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/llvm/unittests/ADT/SmallPtrSetTest.cpp b/gnu/llvm/unittests/ADT/SmallPtrSetTest.cpp index 0070d1cbae1..76f9cf7fb9a 100644 --- a/gnu/llvm/unittests/ADT/SmallPtrSetTest.cpp +++ b/gnu/llvm/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); } |
