Fix unused variable (introduced in

c248219b09)
This commit is contained in:
Thomas Joerg
2022-08-17 15:18:37 +02:00
parent 7a355e9027
commit 5ad7cc7f21

View File

@@ -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();