Make Value::isDereferenceablePointer() handle unreachable code blocks. (This
authorNick Lewycky <nicholas@mxc.ca>
Mon, 23 Jan 2012 00:05:17 +0000 (00:05 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 23 Jan 2012 00:05:17 +0000 (00:05 +0000)
commit37abc488a0527bb682af5aa6c4f376b5b99d67e4
tree13d1df3a5e17ba9f525ed60688ff0a9c4d9692d4
parent1906d32e55224b7481cd9e5726bd5e14b55f5cc1
Make Value::isDereferenceablePointer() handle unreachable code blocks. (This
returns false in the event the computation feeding into the pointer is
unreachable, which maybe ought to be true -- but this is at least consistent
with undef->isDereferenceablePointer().) Fixes PR11825!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148671 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Value.cpp
test/Transforms/SimplifyCFG/unreachable-blocks.ll [new file with mode: 0644]