diff options
author | Chris Lattner <sabre@nondot.org> | 2012-02-24 19:01:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-02-24 19:01:58 +0000 |
commit | 01990f0e1c80284b7405420416c5b8a0a763b30d (patch) | |
tree | 3a3e14885b2c8a1140f234a2ea7653d7659b927a /llvm/lib/Support/APInt.cpp | |
parent | 248d65e78bdaba01f63fa13993c08ae1c8468796 (diff) | |
download | llvm-01990f0e1c80284b7405420416c5b8a0a763b30d.zip llvm-01990f0e1c80284b7405420416c5b8a0a763b30d.tar.gz llvm-01990f0e1c80284b7405420416c5b8a0a763b30d.tar.bz2 |
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.
llvm-svn: 151383
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions