Skip to content

Commit

Permalink
[mlir] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  mlir/lib/Dialect/Tensor/IR/TensorOps.cpp:4781:17: error: unused
  variable 'tileSize' [-Werror,-Wunused-variable]
  • Loading branch information
kazutakahirata committed Nov 5, 2024
1 parent 9b9369e commit d02d9ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4780,6 +4780,7 @@ struct FoldTensorCastPackOp : public OpRewritePattern<PackOp> {
} else {
int64_t tileSize = getConstantIntValue(std::get<1>(it)).value();
assert(tileSize == shape && "tile size and dim size don't match!");
(void)tileSize;
newMixedTileSizes.push_back(
(rewriter.getIntegerAttr(rewriter.getIndexType(), shape)));
}
Expand Down

0 comments on commit d02d9ce

Please sign in to comment.