Merge 80762 from mainline.
authorTanya Lattner <tonic@nondot.org>
Fri, 4 Sep 2009 19:24:58 +0000 (19:24 +0000)
committerTanya Lattner <tonic@nondot.org>
Fri, 4 Sep 2009 19:24:58 +0000 (19:24 +0000)
commit15c0e3ee5d13e6686583fc6b9e504d0dcfb793c1
treee12d32149daacafe411fd81e21e90a0ac56f5ba5
parent3ee29bf6650fe4460372f7fb0c77635f58ea7a8f
Merge 80762 from mainline.
fix PR4848 an infinite loop when indexing down through a recursive gep
and we get the original pointer type.  This doesn't mean that we're
at the first pointer being indexed.  Correct the predicate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_26@81028 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/ConstProp/2009-10-01-GEP-Crash.ll [new file with mode: 0644]