[Mlir-commits] [mlir] ffd9d6e - [mlir][linalg] Fix unused variable on opt build

Goran Flegar llvmlistbot at llvm.org
Fri May 19 05:02:09 PDT 2023


Author: Goran Flegar
Date: 2023-05-19T14:00:38+02:00
New Revision: ffd9d6e0ed8938a6d89c2c64e2cb809a46996519

URL: https://github.com/llvm/llvm-project/commit/ffd9d6e0ed8938a6d89c2c64e2cb809a46996519
DIFF: https://github.com/llvm/llvm-project/commit/ffd9d6e0ed8938a6d89c2c64e2cb809a46996519.diff

LOG: [mlir][linalg] Fix unused variable on opt build

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
index 93939544e491..b9ccbd28038a 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -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());


        


More information about the Mlir-commits mailing list