commit | 4d5b9d65b5490d421a5c207aa0bbc025edce2e29 | [log] [tgz] |
---|---|---|
author | Oliver Stannard <oliver.stannard@arm.com> | Tue Oct 03 14:30:58 2017 +0000 |
committer | Oliver Stannard <oliver.stannard@arm.com> | Tue Oct 03 14:30:58 2017 +0000 |
tree | f972cb47cd94a963db93e84566635241d04eb3c8 | |
parent | 09115192aca338c71a5044aef4692475000a9c82 [diff] |
[ARM, Asm] Use correct source location for register tokens tryParseRegister advances the lexer, so we need to take copies of the start and end locations of the register operand before calling it. Previously, the caret in the diagnostic pointer to the comma after the r0 operand in the test, rather than the start of the operand. Differential revision: https://reviews.llvm.org/D31537 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314799 91177308-0d34-0410-b5e6-96231b3b80d8