[ARM] Error for invalid shift in memory operand
authorOliver Stannard <oliver.stannard@arm.com>
Tue, 24 Oct 2017 14:19:08 +0000 (14:19 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Tue, 24 Oct 2017 14:19:08 +0000 (14:19 +0000)
commit03ded27bbc08c2ac2277666bac861a6fffa730c0
tree88e035fa12fd8576a0a6969059917795a3f8922c
parentc36dd6ae9c112bde3f6e052f079cfd235dd35666
[ARM] Error for invalid shift in memory operand

Report a diagnostic when we fail to parse a shift in a memory operand because
the shift type is not an identifier. Without this, we were silently ignoring
the whole instruction.

Differential revision: https://reviews.llvm.org/D39237

llvm-svn: 316441
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/test/MC/ARM/diagnostics.s