summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
diff options
context:
space:
mode:
authorLewis Revill <lewis.revill@embecosm.com>2019-06-19 10:11:13 +0000
committerLewis Revill <lewis.revill@embecosm.com>2019-06-19 10:11:13 +0000
commit218aa0edb15979d419c8e21a5e55f46511cbd1aa (patch)
tree1144bd44b44a993410897985c9c8aef1f683e85f /llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
parentf7a6fb9f2c1dbde490b222532afe131760d9b8ca (diff)
downloadbcm5719-llvm-218aa0edb15979d419c8e21a5e55f46511cbd1aa.tar.gz
bcm5719-llvm-218aa0edb15979d419c8e21a5e55f46511cbd1aa.zip
[RISCV] Fix failure to parse parenthesized immediates
Since the parser attempts to parse an operand as a register with parentheses before parsing it as an immediate, immediates in parentheses should not be parsed by parseRegister. However in the case where the immediate does not start with an identifier, the LParen is not unlexed and so the RParen causes an unexpected token error. This patch adds the missing UnLex, and modifies the existing UnLex to not use a buffered token, as it should always be unlexing an LParen. Differential Revision: https://reviews.llvm.org/D57319 llvm-svn: 363782
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud