[Mlir-commits] [mlir] c35807f - [mlir] Address compiler warning
Jacques Pienaar
llvmlistbot at llvm.org
Tue Jul 19 20:03:30 PDT 2022
Author: Jacques Pienaar
Date: 2022-07-19T20:03:03-07:00
New Revision: c35807f2714076927503d146b28886f0896965db
URL: https://github.com/llvm/llvm-project/commit/c35807f2714076927503d146b28886f0896965db
DIFF: https://github.com/llvm/llvm-project/commit/c35807f2714076927503d146b28886f0896965db.diff
LOG: [mlir] Address compiler warning
Added:
Modified:
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
index 5a47acedcfee2..e2c407216d1f2 100644
--- a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
+++ b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
@@ -914,6 +914,7 @@ class SparseTensorNNZ final {
: dimSizes(dimSizes), dimTypes(sparsity), nnz(getRank()) {
assert(dimSizes.size() == dimTypes.size() && "Rank mismatch");
bool uncompressed = true;
+ (void)uncompressed;
uint64_t sz = 1; // the product of all `dimSizes` strictly less than `r`.
for (uint64_t rank = getRank(), r = 0; r < rank; r++) {
switch (dimTypes[r]) {
More information about the Mlir-commits
mailing list