[Mlir-commits] [mlir] 4ca1932 - [mlir][sparse] fix compiler warning in release build.
Peiming Liu
llvmlistbot at llvm.org
Mon May 1 12:02:50 PDT 2023
Author: Peiming Liu
Date: 2023-05-01T19:02:43Z
New Revision: 4ca1932776dbbcbd4f581e55fc3b369c17e3904b
URL: https://github.com/llvm/llvm-project/commit/4ca1932776dbbcbd4f581e55fc3b369c17e3904b
DIFF: https://github.com/llvm/llvm-project/commit/4ca1932776dbbcbd4f581e55fc3b369c17e3904b.diff
LOG: [mlir][sparse] fix compiler warning in release build.
Differential Revision: https://reviews.llvm.org/D149607
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
index 4b94392b3d19c..aebf0542b3332 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
@@ -1609,6 +1609,7 @@ struct SparseUnpackOpConverter : public OpConversionPattern<UnpackOp> {
const unsigned nBatched = op.getNumBatchedLvls();
assert(isCOOType(srcTp.getEncoding(), nBatched, true) &&
desc.getFields().size() == 4); // specifier + pos + crds + values
+ (void)srcTp;
auto logicRes = nBatched == 0
? genUnBatchedUnpackOp(op, desc, rewriter)
: genBatchedUnpackOp(op, nBatched, desc, rewriter);
More information about the Mlir-commits
mailing list