[Mlir-commits] [mlir] f4e69d9 - [mlir] Fix an unused variable warning

Kazu Hirata llvmlistbot at llvm.org
Fri Feb 3 10:52:42 PST 2023


Author: Kazu Hirata
Date: 2023-02-03T10:52:35-08:00
New Revision: f4e69d919a0112de071106f7fddcac9397cd1179

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

LOG: [mlir] Fix an unused variable warning

This patch fixes:

  mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp:248:14:
  error: unused variable 'root' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp b/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
index d347c9d42d557..a7456e3bcc3ad 100644
--- a/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
+++ b/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
@@ -269,6 +269,7 @@ static void performOptionalDebugActions(
     llvm::dbgs() << "\nEOF\n";
     llvm::dbgs() << "===================================\n";
   });
+  (void)root;
   DEBUG_WITH_TYPE(DEBUG_TYPE_DUMP_FILE, {
     saveReproToTempFile(llvm::dbgs(), target, transform, passName,
                         debugPayloadRootTag, debugTransformRootTag, binaryName);


        


More information about the Mlir-commits mailing list