1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[NFC] Fixes -Wrange-loop-analysis warnings

This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
This commit is contained in:
Mark de Wever 2020-01-07 00:49:41 +01:00
parent ce9eae4112
commit 0c578f69c5

View File

@ -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).