[all-commits] [llvm/llvm-project] 34b6f2: [AsmParser] Improve error recovery again.
Chris Lattner via All-commits
all-commits at lists.llvm.org
Wed May 11 00:25:55 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34b6f206cbab8471abf29739dab981bd8b868a65
https://github.com/llvm/llvm-project/commit/34b6f206cbab8471abf29739dab981bd8b868a65
Author: Chris Lattner <clattner at nondot.org>
Date: 2022-05-11 (Wed, 11 May 2022)
Changed paths:
M mlir/lib/Parser/Parser.cpp
M mlir/test/IR/invalid.mlir
Log Message:
-----------
[AsmParser] Improve error recovery again.
Change the parsing logic to use StringRef instead of lower level
char* logic. Also, if emitting a diagnostic on the first token
in the file, we make sure to use that position instead of the
very start of the file.
Differential Revision: https://reviews.llvm.org/D125353
More information about the All-commits
mailing list