aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
authorAlex Bradbury <asb@igalia.com>2022-03-23 08:53:05 +0000
committerAlex Bradbury <asb@igalia.com>2022-03-23 08:53:05 +0000
commit61d5fa6b62bbfd788d290537dab073beefb8298b (patch)
tree030f79d2348a514fd92d0d1fcd95ccaf61abfa2e /llvm/docs/tutorial/MyFirstLanguageFrontend
parent012637514ceba3ed419faea15b2a2d39f81e0558 (diff)
downloadllvm-61d5fa6b62bbfd788d290537dab073beefb8298b.zip
llvm-61d5fa6b62bbfd788d290537dab073beefb8298b.tar.gz
llvm-61d5fa6b62bbfd788d290537dab073beefb8298b.tar.bz2
[WebAssembly] Fix error location for parsed symbol/label operands
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. Differential Revision: https://reviews.llvm.org/D122128
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
0 files changed, 0 insertions, 0 deletions