[PATCH] D99889: [AsmParser][ms][X86] Fix possible misbehaviour in parsing of special tokens at start of string.
Eric Astor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 19 11:30:37 PDT 2021
epastor added inline comments.
================
Comment at: llvm/lib/MC/MCParser/AsmLexer.cpp:774
+ if (isalpha(CurChar) || CurChar == '_' || CurChar == '.' ||
+ (MAI.doesAllowQuestionAtStartOfIdentifier() && CurChar == '?'))
+ return LexIdentifier();
----------------
If we're handling @ in its own case below, shouldn't we also handle ? there as well?
Otherwise, looks good to me... and it's possible we can improve MASM-style lexing using this too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99889/new/
https://reviews.llvm.org/D99889
More information about the llvm-commits
mailing list