Skip to content

Commit 04d494e

Browse files
joker-ephmahesh-attarde
authored andcommitted
[MLIR] Apply clang-tidy fixes for modernize-loop-convert in BarvinokTest.cpp (NFC)
1 parent eaeadee commit 04d494e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/unittests/Analysis/Presburger/BarvinokTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ TEST(BarvinokTest, computeNumTermsCone) {
231231
// We expect the answer to be
232232
// (⌊M⌋ + 1)(⌊N⌋ + 1)(⌊P⌋ + 1) =
233233
// ⌊M⌋⌊N⌋⌊P⌋ + ⌊M⌋⌊N⌋ + ⌊N⌋⌊P⌋ + ⌊M⌋⌊P⌋ + ⌊M⌋ + ⌊N⌋ + ⌊P⌋ + 1.
234-
for (unsigned i = 0; i < 2; i++)
234+
for (auto &i : count)
235235
for (unsigned j = 0; j < 2; j++)
236236
for (unsigned k = 0; k < 2; k++)
237-
EXPECT_EQ(count[i][j][k], 1);
237+
EXPECT_EQ(i[j][k], 1);
238238
}
239239

240240
/// We define some simple polyhedra with unimodular tangent cones and verify

0 commit comments

Comments
 (0)