[mlir] Fix emitting an error at EOF
Emitting at error at EOF will emit the diagnostic past the end of the file. When emitting an error during parsing at EOF, emit it at the previous character. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D122295
Loading
Please sign in to comment