[Mlir-commits] [mlir] 2617f2f - [mlir][sparse] fix build issue with unused local under opt builds
Aart Bik
llvmlistbot at llvm.org
Tue May 3 14:55:42 PDT 2022
Author: Aart Bik
Date: 2022-05-03T14:55:32-07:00
New Revision: 2617f2f7082603e740ee5774e1718ecc820f845f
URL: https://github.com/llvm/llvm-project/commit/2617f2f7082603e740ee5774e1718ecc820f845f
DIFF: https://github.com/llvm/llvm-project/commit/2617f2f7082603e740ee5774e1718ecc820f845f.diff
LOG: [mlir][sparse] fix build issue with unused local under opt builds
Reviewed By: rdzhabarov
Differential Revision: https://reviews.llvm.org/D124883
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
index 3001f413a1527..5b4b89bed93c9 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
@@ -798,8 +798,7 @@ static void genTensorStore(Merger &merger, CodeGen &codegen,
if (!rhs) {
// Only unary and binary are allowed to return uninitialized rhs
// to indicate missing output.
- Kind kind = merger.exp(exp).kind;
- assert(kind == kUnary || kind == kBinary);
+ assert(merger.exp(exp).kind == kUnary || merger.exp(exp).kind == kBinary);
} else {
genInsertionStore(codegen, rewriter, op, t, rhs);
}
More information about the Mlir-commits
mailing list