Remove const reference to errorReporter.

Fixes use-after-free ASAN failure.

PiperOrigin-RevId: 204177796
diff --git a/test/IR/parser-errors.mlir b/test/IR/parser-errors.mlir
index dac3fa6..ff3906a 100644
--- a/test/IR/parser-errors.mlir
+++ b/test/IR/parser-errors.mlir
@@ -101,3 +101,7 @@
 }
 
 ; -----
+
+#map = (d0) -> (%  ; expected-error {{invalid SSA name}}
+
+; -----