[AArch64] Check the size of the vector before accessing its elements.
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 13 Oct 2015 18:55:34 +0000 (18:55 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 13 Oct 2015 18:55:34 +0000 (18:55 +0000)
commit881068713cacd18998309d2c15f3c43e5c324830
tree5fb1d137657ade1dc62709dd96b32b88c152d07f
parentf066140cf7af087a198ed5825245fc1c3c06e923
[AArch64] Check the size of the vector before accessing its elements.

This fixes an assert in AArch64AsmParser::MatchAndEmitInstruction.

rdar://problem/23081753

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