forked from OSchip/llvm-project
[MLIR][Presburger] Silence -Wdangling-else warning (NFC)
gcc suggests explicit braces to avoid ambiguous ‘else’.
This commit is contained in:
parent
f533011252
commit
d6f8f56da0
|
@ -636,8 +636,9 @@ static void checkDivisionRepresentation(
|
||||||
// denominator for a division is zero, we ignore its dividend.
|
// denominator for a division is zero, we ignore its dividend.
|
||||||
EXPECT_TRUE(dividends.size() == expectedDividends.size());
|
EXPECT_TRUE(dividends.size() == expectedDividends.size());
|
||||||
for (unsigned i = 0, e = dividends.size(); i < e; ++i)
|
for (unsigned i = 0, e = dividends.size(); i < e; ++i)
|
||||||
if (denominators[i] != 0)
|
if (denominators[i] != 0) {
|
||||||
EXPECT_TRUE(expectedDividends[i] == dividends[i]);
|
EXPECT_TRUE(expectedDividends[i] == dividends[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(IntegerPolyhedronTest, computeLocalReprSimple) {
|
TEST(IntegerPolyhedronTest, computeLocalReprSimple) {
|
||||||
|
|
Loading…
Reference in New Issue