[Mlir-commits] [mlir] ef1bb2a - [mlir][SparseTensor] Fix unused variable error (#140428)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat May 17 18:55:12 PDT 2025
Author: Matthias Springer
Date: 2025-05-18T10:55:09+09:00
New Revision: ef1bb2a243e0534394be2a74b0ded212d110d3c7
URL: https://github.com/llvm/llvm-project/commit/ef1bb2a243e0534394be2a74b0ded212d110d3c7
DIFF: https://github.com/llvm/llvm-project/commit/ef1bb2a243e0534394be2a74b0ded212d110d3c7.diff
LOG: [mlir][SparseTensor] Fix unused variable error (#140428)
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorDescriptor.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorDescriptor.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorDescriptor.cpp
index 79602a22dc1fe..cf99117065c5f 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorDescriptor.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorDescriptor.cpp
@@ -39,6 +39,7 @@ convertSparseTensorType(RankedTensorType rtp, SmallVectorImpl<Type> &fields) {
return std::nullopt;
unsigned numFields = fields.size();
+ (void)numFields;
foreachFieldAndTypeInSparseTensor(
stt,
[&](Type fieldType, FieldIndex fieldIdx,
More information about the Mlir-commits
mailing list