[ARM] Make sure we do not dereference the end iterator when accessing debug
authorQuentin Colombet <qcolombet@apple.com>
Thu, 15 Oct 2015 00:41:26 +0000 (00:41 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 15 Oct 2015 00:41:26 +0000 (00:41 +0000)
commit2c6d721466eea010c1be424d550aee6dadc1dabd
tree807cf0cc1c03f2130d32e76d8ab255b461473557
parent952c2702c73195ed373291489c112da64c26b271
[ARM] Make sure we do not dereference the end iterator when accessing debug
information.
Although the problem was always here, it would only be exposed when
shrink-wrapping is enable.

rdar://problem/23110493

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250352 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFrameLowering.cpp
test/CodeGen/ARM/arm-shrink-wrapping.ll