Fix mishandling of the infinite loop case when merging two blocks. This
authorChris Lattner <sabre@nondot.org>
Sun, 13 Jul 2008 22:23:11 +0000 (22:23 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Jul 2008 22:23:11 +0000 (22:23 +0000)
commit093a4385027235459ab6972b2e2fdc79061773cf
tree065675be8e27dc741b06bdf20a9a7d673f950e22
parentb824512b8d733ccdfb1b1a2e8a6950605acf1c52
Fix mishandling of the infinite loop case when merging two blocks.  This
fixes PR2540.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/2008-07-13-InfLoopMiscompile.ll [new file with mode: 0644]