mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-11 13:46:08 +00:00

DeleteDeadBlock was called indiscriminately, leading to cleanuprets with undef cleanuppad references. Instead, try to drain the BB of most of it's instructions if it is unreachable. We can then remove the BB if it solely consists of a terminator (and maybe some phis). llvm-svn: 261731