[all-commits] [llvm/llvm-project] 7c72f5: [mlir] Fix emitting an error at EOF

Jeff Niu via All-commits all-commits at lists.llvm.org
Wed Mar 23 13:23:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c72f55ea84a59957ae0a00394c953088fc543e8
      https://github.com/llvm/llvm-project/commit/7c72f55ea84a59957ae0a00394c953088fc543e8
  Author: Mogball <jeffniu22 at gmail.com>
  Date:   2022-03-23 (Wed, 23 Mar 2022)

  Changed paths:
    M mlir/lib/Parser/Parser.h
    M mlir/test/IR/invalid.mlir

  Log Message:
  -----------
  [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




More information about the All-commits mailing list