[Mlir-commits] [mlir] fccab9f - [mlir] Fix an unused variable warning
Kazu Hirata
llvmlistbot at llvm.org
Fri Dec 2 16:25:13 PST 2022
Author: Kazu Hirata
Date: 2022-12-02T16:25:07-08:00
New Revision: fccab9f90b0327c00116e593351e1e4cd19b5677
URL: https://github.com/llvm/llvm-project/commit/fccab9f90b0327c00116e593351e1e4cd19b5677
DIFF: https://github.com/llvm/llvm-project/commit/fccab9f90b0327c00116e593351e1e4cd19b5677.diff
LOG: [mlir] Fix an unused variable warning
This patch fixes:
mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp:646:18: error:
unused variable 'dimRank' [-Werror,-Wunused-variable]
Added:
Modified:
mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp b/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp
index 277f531ecea6..dbb08d5e2f56 100644
--- a/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp
+++ b/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp
@@ -648,6 +648,7 @@ void *_mlir_ciface_newSparseTensorFromReader(
ASSERT_USIZE_EQ(lvlTypesRef, lvlRank);
ASSERT_USIZE_EQ(lvl2dimRef, lvlRank);
ASSERT_USIZE_EQ(dim2lvlRef, dimRank);
+ (void)dimRank;
const index_type *lvlSizes = MEMREF_GET_PAYLOAD(lvlSizesRef);
const DimLevelType *lvlTypes = MEMREF_GET_PAYLOAD(lvlTypesRef);
const index_type *lvl2dim = MEMREF_GET_PAYLOAD(lvl2dimRef);
More information about the Mlir-commits
mailing list