[Mlir-commits] [mlir] 5ad7cc7 - Fix unused variable (introduced in
Thomas Joerg
llvmlistbot at llvm.org
Wed Aug 17 06:20:00 PDT 2022
Author: Thomas Joerg
Date: 2022-08-17T15:18:37+02:00
New Revision: 5ad7cc7f211b604f250500dbc4d7eb7df00b5cfd
URL: https://github.com/llvm/llvm-project/commit/5ad7cc7f211b604f250500dbc4d7eb7df00b5cfd
DIFF: https://github.com/llvm/llvm-project/commit/5ad7cc7f211b604f250500dbc4d7eb7df00b5cfd.diff
LOG: Fix unused variable (introduced in
c248219b09c1e724468d4603f647466b3e282330)
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
index 4a4427f3cbaf8..78045c9c8b308 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
@@ -653,6 +653,7 @@ static void genDenseTensorIterationLoop(
RankedTensorType tensorTp,
function_ref<void(OpBuilder &, Location, ValueRange)> bodyBuilder) {
auto enc = getSparseTensorEncoding(tensorTp);
+ (void) enc;
assert(!enc && "Generating Densor Tensor Loop on a Sparse Tensor!");
unsigned rank = tensorTp.getRank();
More information about the Mlir-commits
mailing list