The tLDR instruction wasn't encoded properly:
commitda502c1c77c377dbce6726b43d234af483302278
authorBill Wendling <isanbard@gmail.com>
Fri, 3 Dec 2010 00:53:22 +0000 (3 00:53 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 3 Dec 2010 00:53:22 +0000 (3 00:53 +0000)
treefe066b81bb268868f65828bf8d4bea27674e86b4
parent4bec500d55cd8f9d6d035246bc2af11d65ae072b
The tLDR instruction wasn't encoded properly:

<MCInst 2251 <MCOperand Reg:70> <MCOperand Reg:66> <MCOperand Imm:0> <MCOperand Reg:0> <MCOperand Imm:14> <MCOperand Reg:0>>

Notice that the "reg" here is 0, which is an invalid register. Put a check in
the code for this to prevent crashing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120766 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMMCCodeEmitter.cpp