[Mlir-commits] [mlir] 22e7e68 - [mlir][Affine] Fix unused variable warning (NFC)

lorenzo chelini llvmlistbot at llvm.org
Thu Mar 21 11:42:32 PDT 2024


Author: lorenzo chelini
Date: 2024-03-21T19:40:55+01:00
New Revision: 22e7e68a40b8b1aac8b44137685d21ac4b98bd17

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

LOG: [mlir][Affine] Fix unused variable warning (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/Affine/Utils/Utils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Affine/Utils/Utils.cpp b/mlir/lib/Dialect/Affine/Utils/Utils.cpp
index 3dc5539cde3d98..8b8ed2578ca5cc 100644
--- a/mlir/lib/Dialect/Affine/Utils/Utils.cpp
+++ b/mlir/lib/Dialect/Affine/Utils/Utils.cpp
@@ -1792,8 +1792,7 @@ MemRefType mlir::affine::normalizeMemRefType(MemRefType memrefType) {
   MLIRContext *context = memrefType.getContext();
   for (unsigned d = 0; d < newRank; ++d) {
     // Check if this dimension is dynamic.
-    if (bool isDynDim =
-            isNormalizedMemRefDynamicDim(d, layoutMap, memrefTypeDynDims)) {
+    if (isNormalizedMemRefDynamicDim(d, layoutMap, memrefTypeDynDims)) {
       newShape[d] = ShapedType::kDynamic;
       continue;
     }


        


More information about the Mlir-commits mailing list