[AArch64] Improve short-form diags on long-form Match_InvalidOperand.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 19 Aug 2015 17:40:19 +0000 (17:40 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 19 Aug 2015 17:40:19 +0000 (17:40 +0000)
commit09f1564d23c7f606a5419a89a5126b698624c3a7
treed5ef5f256b3bd7c6821d52df0854c1a62aee3912
parent25faeeb8fe6eaaf3cc5729e375e52e8a7402a6f6
[AArch64] Improve short-form diags on long-form Match_InvalidOperand.

Since r244955, we try to use the short-form ErrorInfo when both
tries failed, and the long-form match failed on a suffix operand.
However, this means we sometimes mix ErrorInfo and MatchResult
(one manifestation of this being PR24498). Instead, restore both.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245469 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
test/MC/AArch64/noneon-diagnostics.s