Decrementing the iterator here could be wrong if the worklist is empty after the...
authorBill Wendling <isanbard@gmail.com>
Thu, 18 Sep 2008 23:04:18 +0000 (23:04 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 18 Sep 2008 23:04:18 +0000 (23:04 +0000)
commit670ed09238453f2d6614086b0a2d72bed180a8d2
tree6b450446420589aa646b411904f2d88d0ae90162
parent3d0a9a371c0ce3a46e845a7bf1f1acb7a1cf523e
Decrementing the iterator here could be wrong if the worklist is empty after the "erase".
Thanks to Ji Young Park for the patch!

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