commit | 009e2650d69fe93bda1864340c5f000e56c52fb8 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Feb 24 19:01:58 2012 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Feb 24 19:01:58 2012 +0000 |
tree | 0da13e16342e5c497332c81991972cd21517be33 | |
parent | 1a2d061ec08b86ba91d7009b6ffcf08d5bac3f42 [diff] |
fix PR12075, a regression in a recent transform I added. In unreachable code, gep chains can be infinite. Just like "stripPointerCasts", use a set to keep track of visited instructions so we don't recurse infinitely. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151383 91177308-0d34-0410-b5e6-96231b3b80d8