Fix GCC warning recommending parens.

Found with a more strict set of warning flags on GCC 9.
pull/2441/head
Stella Laurenzo 2023-09-06 00:23:23 -07:00
parent 9cb5d38cd1
commit 29fdc3833c
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ void checkDimEqualHelper(OpBuilder &b, Location loc, Value lhsDim,
Type lhsType = lhsDim.getType();
Type rhsType = rhsDim.getType();
auto checkIntOrIndex = [](Type type) {
assert(type.isa<IntegerType>() ||
type.isa<IndexType>() && "must be either integer or index type");
assert((type.isa<IntegerType>() || type.isa<IndexType>()) &&
"must be either integer or index type");
};
checkIntOrIndex(lhsType);
checkIntOrIndex(rhsType);