* Fix bug: test/Regression/Transforms/ADCE/2002-07-17-AssertionFailure.ll
authorChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 00:22:34 +0000 (00:22 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Jul 2002 00:22:34 +0000 (00:22 +0000)
commit446698b63d574f44b730c6d6d63f9035ad701c5d
tree978678a7bbe5c850855ab24f4dfde92d1db44100
parent5922e4734db9f13a52b56deeff3a65a2bab2d904
* Fix bug: test/Regression/Transforms/ADCE/2002-07-17-AssertionFailure.ll
  which was caused by us not running the "drop references of dead
  instructions" code when there were no basic blocks that were dead.

  We still don't want to do some of the stuff we do if there are dead
  basic blocks, but we DO want to drop references of dead instructions,
  so we factor the common code out to a new method.

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