diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp --- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp +++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp @@ -652,8 +652,8 @@ ConversionPatternRewriter &rewriter, Location loc, Value t, RankedTensorType tensorTp, function_ref bodyBuilder) { - auto enc = getSparseTensorEncoding(tensorTp); - assert(!enc && "Generating Densor Tensor Loop on a Sparse Tensor!"); + assert(!getSparseTensorEncoding(tensorTp) && + "Generating Dense Tensor Loop on a Sparse Tensor!"); unsigned rank = tensorTp.getRank(); Value zero = constantIndex(rewriter, loc, 0);