diff --git a/llvm/unittests/Support/ReverseIterationTest.cpp b/llvm/unittests/Support/ReverseIterationTest.cpp index 05804e69c260..657368283efc 100644 --- a/llvm/unittests/Support/ReverseIterationTest.cpp +++ b/llvm/unittests/Support/ReverseIterationTest.cpp @@ -45,7 +45,7 @@ TEST(ReverseIterationTest, DenseMapTest1) { int IterKeys[] = { 2, 4, 1, 3 }; // Check that the DenseMap is iterated in the expected order. - for (const auto &Tuple : zip(Map, IterKeys)) + for (auto Tuple : zip(Map, IterKeys)) ASSERT_EQ(std::get<0>(Tuple).first, std::get<1>(Tuple)); // Check operator++ (post-increment). @@ -99,7 +99,7 @@ TEST(ReverseIterationTest, DenseMapTest2) { std::reverse(&Keys[0], &Keys[4]); // Check that the DenseMap is iterated in the expected order. - for (const auto &Tuple : zip(Map, Keys)) + for (auto Tuple : zip(Map, Keys)) ASSERT_EQ(std::get<0>(Tuple).second, std::get<1>(Tuple)->value); // Check operator++ (post-increment).