We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddaa2c3 commit 938f521Copy full SHA for 938f521
mlir/lib/Transforms/Utils/DialectConversion.cpp
@@ -25,6 +25,7 @@
25
#include "llvm/Support/SaveAndRestore.h"
26
#include "llvm/Support/ScopedPrinter.h"
27
#include <optional>
28
+#include <utility>
29
30
using namespace mlir;
31
using namespace mlir::detail;
@@ -1051,7 +1052,7 @@ struct ConversionPatternRewriterImpl : public RewriterBase::Listener {
1051
1052
MLIRContext *context,
1053
std::function<void(Operation *)> opErasedCallback = nullptr)
1054
: RewriterBase(context, /*listener=*/this),
- opErasedCallback(opErasedCallback) {}
1055
+ opErasedCallback(std::move(opErasedCallback)) {}
1056
1057
/// Erase the given op (unless it was already erased).
1058
void eraseOp(Operation *op) override {
0 commit comments