[mlir] Fix unused variable warning. NFCI.

This commit is contained in:
Benjamin Kramer 2022-04-05 21:23:49 +02:00
parent 47e7a22471
commit e7f0552682
1 changed files with 1 additions and 3 deletions

View File

@ -213,9 +213,7 @@ public:
int64_t stride =
op.getStrides().getValue().front().cast<IntegerAttr>().getInt();
auto loc = op.getLoc();
auto elemType = dstType.getElementType();
assert(elemType.isSignlessIntOrIndexOrFloat());
assert(dstType.getElementType().isSignlessIntOrIndexOrFloat());
// Single offset can be more efficiently shuffled.
if (op.getOffsets().getValue().size() != 1)