[mlir] NFC - Fix unused variable in non-debug mode

This commit is contained in:
Nicolas Vasilache 2021-01-20 22:19:59 +00:00
parent 079967cdf9
commit 555a395f2c
1 changed files with 3 additions and 1 deletions

View File

@ -1083,9 +1083,11 @@ def LinalgStructuredInterface : OpInterface<"LinalgOp"> {
Operation::operand_range res{
getOperation()->getOperands().begin() + getNumShapedOperands(),
getOperation()->getOperands().end()};
for (Type t : TypeRange{res})
for (Type t : TypeRange{res}) {
(void)t;
assert((t.isSignlessIntOrIndexOrFloat() || t.template isa<VectorType>())
&&"expected scalar or vector type");
}
return res;
}