forked from OSchip/llvm-project
[NFC] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
This commit is contained in:
parent
6904cd9486
commit
5e0e0e3ff0
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue