[PATCH] D76647: Fix a bug in the .mlir lexer, where a \0 character in a file is treated as a colon (due to an accidental fall through) instead of whitespace.

Chris Lattner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 23 15:48:56 PDT 2020


lattner created this revision.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: rriddle.
Herald added a project: LLVM.

While here, simplify the lexer a bit by eliminating the unneeded 'operator'
classification of certain sigils, they can just be treated as 'punctuation'.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76647

Files:
  mlir/lib/Parser/Lexer.cpp
  mlir/lib/Parser/Token.cpp
  mlir/lib/Parser/Token.h
  mlir/lib/Parser/TokenKinds.def
  mlir/test/IR/parser.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76647.252164.patch
Type: text/x-patch
Size: 5294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200323/678bc047/attachment.bin>


More information about the llvm-commits mailing list