[Mlir-commits] [mlir] 48ee6bf - [mlir] Fix -Wunused-function in TransformInterpreterPassBase.cpp (NFC)
Jie Fu
llvmlistbot at llvm.org
Fri Oct 6 06:02:53 PDT 2023
Author: Jie Fu
Date: 2023-10-06T21:02:44+08:00
New Revision: 48ee6bf563924e2b4b620ed4c53b2d9f476f392c
URL: https://github.com/llvm/llvm-project/commit/48ee6bf563924e2b4b620ed4c53b2d9f476f392c
DIFF: https://github.com/llvm/llvm-project/commit/48ee6bf563924e2b4b620ed4c53b2d9f476f392c.diff
LOG: [mlir] Fix -Wunused-function in TransformInterpreterPassBase.cpp (NFC)
/llvm-project/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp:167:1: error: unused function 'saveReproToTempFile' [-Werror,-Wunused-function]
saveReproToTempFile(llvm::raw_ostream &os, Operation *target,
^
1 error generated.
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 ebfd7269f696bbc..5f35b6789dc94fe 100644
--- a/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
+++ b/mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp
@@ -163,7 +163,7 @@ static llvm::raw_ostream &printModuleForRepro(llvm::raw_ostream &os,
/// Saves the payload and the transform IR into a temporary file and reports
/// the file name to `os`.
-static void
+[[maybe_unused]] static void
saveReproToTempFile(llvm::raw_ostream &os, Operation *target,
Operation *transform, StringRef passName,
const Pass::Option<std::string> &debugPayloadRootTag,
More information about the Mlir-commits
mailing list