This is an archive of the discontinued LLVM Phabricator instance.

[X86][MC] Fix bracket expression parsing in intel-style assembly.
ClosedPublic

Authored by niravd on Jul 14 2016, 8:32 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

niravd updated this revision to Diff 63982.Jul 14 2016, 8:32 AM
niravd retitled this revision from to [X86][MC] Fix bracket expression parsing in intel-style assembly..
niravd added a reviewer: rnk.
niravd updated this object.
niravd added a subscriber: llvm-commits.
rnk edited edge metadata.Jul 14 2016, 8:34 AM

Why are we calling ParseIntelBracExpression in a comment in the first place?

We're not. We're dealing with the next token after a bracket expression may be a struct field accessor. If it didn't exist, we should get an EndOfStatement with a string of "" or "\n" and so skipping the Token Kind check was okay. But now that end of line comments are embedded in the EndOfStatement token there we can potentially have '.' characters we erroneously fail.

rnk accepted this revision.Jul 14 2016, 8:55 AM
rnk edited edge metadata.

makes sense, lgtm

This revision is now accepted and ready to land.Jul 14 2016, 8:55 AM
This revision was automatically updated to reflect the committed changes.