Fix a bug where we could delete dead invoke instructions with uses.
authorChris Lattner <sabre@nondot.org>
Sat, 11 Dec 2004 02:53:57 +0000 (02:53 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 11 Dec 2004 02:53:57 +0000 (02:53 +0000)
commit0417feba293f58e90a7f959a4f85120dfcbda8d7
treef21ae6b9e100a9b2071a3d91c08b592a589479ae
parent1fce09125cb46c91407668ca29915c450a482811
Fix a bug where we could delete dead invoke instructions with uses.
In functions where we fully constant prop the return value, replace all
ret instructions with 'ret undef'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18786 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SCCP.cpp