Remove const reference to errorReporter.

Fixes use-after-free ASAN failure.

PiperOrigin-RevId: 204177796
diff --git a/lib/Parser/Parser.cpp b/lib/Parser/Parser.cpp
index 8c8ffa0..3eff98c 100644
--- a/lib/Parser/Parser.cpp
+++ b/lib/Parser/Parser.cpp
@@ -1660,8 +1660,7 @@
   std::unique_ptr<Module> module(new Module(context));
 
   ParserState state(sourceMgr, module.get(),
-                    errorReporter ? std::move(errorReporter)
-                                  : defaultErrorReporter);
+                    errorReporter ? errorReporter : defaultErrorReporter);
   if (ModuleParser(state).parseModule())
     return nullptr;