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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D122295
[mlir] Fix emitting an error at EOF ClosedPublic Authored by Mogball on Mar 23 2022, 1:01 AM.
Details
Summary 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.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 23 2022, 11:34 AM Closed by commit rG7c72f55ea84a: [mlir] Fix emitting an error at EOF (authored by Mogball). · Explain WhyMar 23 2022, 1:23 PM This revision was automatically updated to reflect the committed changes. Mogball marked an inline comment as done.
Revision Contents
Diff 417729 mlir/lib/Parser/Parser.h
mlir/test/IR/invalid.mlir
|
Could you check on an empty file what happens here?