diff --git a/mlir/lib/Parser/Parser.cpp b/mlir/lib/Parser/Parser.cpp index 3c8fc894e02a..8c8ffa081488 100644 --- a/mlir/lib/Parser/Parser.cpp +++ b/mlir/lib/Parser/Parser.cpp @@ -53,7 +53,7 @@ public: SMDiagnosticHandlerTy errorReporter) : context(module->getContext()), module(module), lex(sourceMgr, errorReporter), curToken(lex.lexToken()), - errorReporter(std::move(errorReporter)) {} + errorReporter(errorReporter) {} // A map from affine map identifier to AffineMap. llvm::StringMap affineMapDefinitions;