ARM: Fix crash in ARM backend inside of ARMConstantIslandPass
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 4 Jun 2013 17:46:15 +0000 (17:46 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 4 Jun 2013 17:46:15 +0000 (17:46 +0000)
commit35e7751af455f2cc559cdc2d3424b53706e09bb3
tree0513bb80dc7a5583aad2170d91b3589dae4f3c03
parent8240ef04108620fef51219e9495a6e71e95ccd75
ARM: Fix crash in ARM backend inside of ARMConstantIslandPass

The ARM backend did not expect LDRBi12 to hold a constant pool operand.
Allow for LLVM to deal with the instruction similar to how it deals with
LDRi12.

This fixes PR16215.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183238 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMConstantIslandPass.cpp
test/CodeGen/ARM/load-address-masked.ll [new file with mode: 0644]