Fix Value::stripPointerCasts and BasicAA to avoid trouble on
authorDan Gohman <gohman@apple.com>
Mon, 28 Jun 2010 21:16:52 +0000 (21:16 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 28 Jun 2010 21:16:52 +0000 (21:16 +0000)
commit50f424c3d079d4774bb323de1e0b77cf4627be69
treecf16075a9b993fb4d2ae431eebba08aa00e1a5a6
parent08baddbc0708d6965b72b40aa3c1f40b56a31835
Fix Value::stripPointerCasts and BasicAA to avoid trouble on
code in unreachable blocks, which have have use-def cycles.
This fixes PR7514.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107071 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BasicAliasAnalysis.cpp
lib/VMCore/Value.cpp
test/Analysis/BasicAA/unreachable-block.ll [new file with mode: 0644]