[mlir][linalg] Fix unused variable on opt build
authorGoran Flegar <gflegar@google.com>
Fri, 19 May 2023 12:00:38 +0000 (14:00 +0200)
committerGoran Flegar <gflegar@google.com>
Fri, 19 May 2023 12:00:38 +0000 (14:00 +0200)
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp

index 9393954..b9ccbd2 100644 (file)
@@ -1301,6 +1301,7 @@ vectorizeAsTensorPadOp(RewriterBase &rewriter, tensor::PadOp padOp,
   LogicalResult status =
       cast<ReifyRankedShapedTypeOpInterface>(padOp.getOperation())
           .reifyResultShapes(rewriter, reifiedReturnShapes);
+  (void)status; // prevent unused variable warning on non-assert builds
   assert(succeeded(status) && "failed to reify result shapes");
   auto emptyOp = rewriter.create<tensor::EmptyOp>(loc, reifiedReturnShapes[0],
                                                   padValue.getType());