Skip to content

Commit 938f521

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in DialectConversion.cpp (NFC)
1 parent ddaa2c3 commit 938f521

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Transforms/Utils/DialectConversion.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "llvm/Support/SaveAndRestore.h"
2626
#include "llvm/Support/ScopedPrinter.h"
2727
#include <optional>
28+
#include <utility>
2829

2930
using namespace mlir;
3031
using namespace mlir::detail;
@@ -1051,7 +1052,7 @@ struct ConversionPatternRewriterImpl : public RewriterBase::Listener {
10511052
MLIRContext *context,
10521053
std::function<void(Operation *)> opErasedCallback = nullptr)
10531054
: RewriterBase(context, /*listener=*/this),
1054-
opErasedCallback(opErasedCallback) {}
1055+
opErasedCallback(std::move(opErasedCallback)) {}
10551056

10561057
/// Erase the given op (unless it was already erased).
10571058
void eraseOp(Operation *op) override {

0 commit comments

Comments
 (0)