[llvm] [ADT] Fix MappedIteratorTest. (PR #67337)
Ivan Kosarev via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 07:57:56 PDT 2023
https://github.com/kosarev created https://github.com/llvm/llvm-project/pull/67337
Caught on builds with expensive and _GLIBCXX_DEBUG checks enabled.
See related discussion in
<https://reviews.llvm.org/D134675#inline-1472177>.
>From d475a65c76a3477fa074a30546872114ef733f14 Mon Sep 17 00:00:00 2001
From: Ivan Kosarev <ivan.kosarev at amd.com>
Date: Mon, 25 Sep 2023 15:05:13 +0100
Subject: [PATCH] [ADT] Fix MappedIteratorTest.
Caught on builds with expensive and _GLIBCXX_DEBUG checks enabled.
See related discussion in
<https://reviews.llvm.org/D134675#inline-1472177>.
---
llvm/unittests/ADT/MappedIteratorTest.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/unittests/ADT/MappedIteratorTest.cpp b/llvm/unittests/ADT/MappedIteratorTest.cpp
index f2858bd11eceb2c..8ea3dbc0d5a0933 100644
--- a/llvm/unittests/ADT/MappedIteratorTest.cpp
+++ b/llvm/unittests/ADT/MappedIteratorTest.cpp
@@ -174,7 +174,7 @@ TYPED_TEST(MappedIteratorTestBasic, MoveAssign) {
I3 = std::move(I2);
- EXPECT_EQ(I2, I1) << "move assigned iterator is a different position";
+ EXPECT_EQ(I3, I1) << "move assigned iterator is a different position";
}
}
More information about the llvm-commits
mailing list