From 3b20970de8e613961ee6745f03c04be0ec1d6cb7 Mon Sep 17 00:00:00 2001 From: scentini Date: Mon, 30 Mar 2020 13:38:40 +0200 Subject: [PATCH] Fix unused-variable error when assertions are disabled --- mlir/lib/Transforms/Utils/LoopUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp index d05a02dee0c0..9b02bcd19377 100644 --- a/mlir/lib/Transforms/Utils/LoopUtils.cpp +++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp @@ -2142,6 +2142,7 @@ static AffineIfOp createSeparationCondition(MutableArrayRef loops, // larger (and resp. smaller) than any other lower (or upper bound). SmallVector fullTileLb, fullTileUb; for (auto loop : loops) { + (void) loop; // TODO: Non-unit stride is not an issue to generalize to. assert(loop.getStep() == 1 && "point loop step expected to be one"); // Mark everything symbols for the purpose of finding a constant diff pair. -- GitLab