Thumb2ITBlockPass: Fix a possible dereference of an invalid iterator. This was
authorDaniel Dunbar <daniel@zuster.org>
Fri, 25 Jun 2010 23:14:54 +0000 (23:14 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 25 Jun 2010 23:14:54 +0000 (23:14 +0000)
commite39e06af38281bb8923d28b554a11a74e4eb67b7
tree35d87b83cec0b07f8d1454ce875baffcfce68605
parent9f054f017c7bced071f5a4de606cec6751edd23f
Thumb2ITBlockPass: Fix a possible dereference of an invalid iterator. This was
introduced in r106343, but only showed up recently (with a particular compiler &
linker combination) because of the particular check, and because we have no
builtin checking for dereferencing the end of an array, which is truly
unfortunate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106908 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Thumb2ITBlockPass.cpp
test/CodeGen/ARM/2010-06-25-Thumb2ITInvalidIterator.ll [new file with mode: 0644]