[MLIR][Presburger] Silence -Wdangling-else warning (NFC)

gcc suggests explicit braces to avoid ambiguous ‘else’.
This commit is contained in:
Lorenzo Chelini 2022-01-24 09:07:20 +01:00
parent f533011252
commit d6f8f56da0
1 changed files with 2 additions and 1 deletions

View File

@ -636,8 +636,9 @@ static void checkDivisionRepresentation(
// denominator for a division is zero, we ignore its dividend.
EXPECT_TRUE(dividends.size() == expectedDividends.size());
for (unsigned i = 0, e = dividends.size(); i < e; ++i)
if (denominators[i] != 0)
if (denominators[i] != 0) {
EXPECT_TRUE(expectedDividends[i] == dividends[i]);
}
}
TEST(IntegerPolyhedronTest, computeLocalReprSimple) {