Fix unused-variable error when assertions are disabled
authorscentini <rosica@google.com>
Mon, 30 Mar 2020 11:38:40 +0000 (13:38 +0200)
committerscentini <rosica@google.com>
Mon, 30 Mar 2020 11:55:43 +0000 (13:55 +0200)
mlir/lib/Transforms/Utils/LoopUtils.cpp

index d05a02d..9b02bcd 100644 (file)
@@ -2142,6 +2142,7 @@ static AffineIfOp createSeparationCondition(MutableArrayRef<AffineForOp> loops,
   // larger (and resp. smaller) than any other lower (or upper bound).
   SmallVector<int64_t, 8> 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.