[Mlir-commits] [mlir] [mlir][SparseTensor] Fix unused variable error (PR #140428)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat May 17 18:55:38 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Matthias Springer (matthias-springer)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/140428.diff


1 Files Affected:

- (modified) mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorDescriptor.cpp (+1) 


``````````diff
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,

``````````

</details>


https://github.com/llvm/llvm-project/pull/140428


More information about the Mlir-commits mailing list