[Mlir-commits] [mlir] 02f4cfa - [mlir] Fix a warning

Kazu Hirata llvmlistbot at llvm.org
Wed Dec 21 16:15:15 PST 2022


Author: Kazu Hirata
Date: 2022-12-21T16:15:09-08:00
New Revision: 02f4cfa33d3d970b8ad3ddeda73f59785ab19984

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

LOG: [mlir] Fix a warning

This patch fixes:

  mlir/lib/Dialect/MemRef/Transforms/RuntimeOpVerification.cpp:33:12:
  error: variable 'foundDynamicDim' set but not used
  [-Werror,-Wunused-but-set-variable]

Added: 
    

Modified: 
    mlir/lib/Dialect/MemRef/Transforms/RuntimeOpVerification.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/MemRef/Transforms/RuntimeOpVerification.cpp b/mlir/lib/Dialect/MemRef/Transforms/RuntimeOpVerification.cpp
index af368555635ae..101325ee85913 100644
--- a/mlir/lib/Dialect/MemRef/Transforms/RuntimeOpVerification.cpp
+++ b/mlir/lib/Dialect/MemRef/Transforms/RuntimeOpVerification.cpp
@@ -36,6 +36,7 @@ struct ExpandShapeOpInterface
           // Keep this assert here in case the op is extended in the future.
           assert(!foundDynamicDim &&
                  "more than one dynamic dim found in reassoc group");
+          (void)foundDynamicDim;
           foundDynamicDim = true;
           continue;
         }


        


More information about the Mlir-commits mailing list