Skip to content

Commit

Permalink
[MLIR][Presburger] Silence warnings in GCC (NFC)
Browse files Browse the repository at this point in the history
Reviewed By: arjunp

Differential Revision: https://reviews.llvm.org/D121205
  • Loading branch information
chelini committed Mar 8, 2022
1 parent f0e3972 commit f3e1dcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp
Expand Up @@ -81,10 +81,12 @@ static void checkSample(bool hasSample, const IntegerPolyhedron &poly,
EXPECT_TRUE(poly.containsPoint(*maybeSample));

ASSERT_FALSE(maybeLexMin.isEmpty());
if (maybeLexMin.isUnbounded())
if (maybeLexMin.isUnbounded()) {
EXPECT_TRUE(Simplex(poly).isUnbounded());
if (maybeLexMin.isBounded())
}
if (maybeLexMin.isBounded()) {
EXPECT_TRUE(poly.containsPoint(*maybeLexMin));
}
}
break;
case TestFunction::Empty:
Expand Down

0 comments on commit f3e1dcc

Please sign in to comment.