This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fix error location for parsed symbol/label operands
ClosedPublic

Authored by asb on Mar 21 2022, 5:02 AM.

Details

Summary

The previous code didn't take account for the fact that parseExpression my lex additional tokens - because of this, it's necessary to record the location of the current token ahead of the call. This patch additionally makes use of the fact parseExpression will set its End parameter to the end of the expression.

Although this fix could be added independently of D122127, I've opted to make it a child patch in order to ensure the change has some test coverage.

Diff Detail

Event Timeline

asb created this revision.Mar 21 2022, 5:02 AM
asb requested review of this revision.Mar 21 2022, 5:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 5:03 AM
sbc100 accepted this revision.Mar 21 2022, 8:42 AM
This revision is now accepted and ready to land.Mar 21 2022, 8:42 AM
This revision was landed with ongoing or failed builds.Mar 23 2022, 1:52 AM
This revision was automatically updated to reflect the committed changes.