]> granicus.if.org Git - llvm/commit
[ARM] Fix crash in ConstantIslands
authorJames Molloy <james.molloy@arm.com>
Sat, 22 Oct 2016 09:58:37 +0000 (09:58 +0000)
committerJames Molloy <james.molloy@arm.com>
Sat, 22 Oct 2016 09:58:37 +0000 (09:58 +0000)
commit13608f305fbd1acbc8dcd4f385305a6b05d5a9a4
tree951882b00eea5922e617bc4122149ba2fb009a1d
parent6fa81ba24f2ea7a41f4717a8432b064079e77cf6
[ARM] Fix crash in ConstantIslands

tPCRelJT may not be the first instruction in a block. Check that instead of dereferencing a broken iterator.

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