fix a bug I introduced in simplifycfg handling single entry phi
authorChris Lattner <sabre@nondot.org>
Sun, 7 Dec 2008 07:22:45 +0000 (07:22 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 7 Dec 2008 07:22:45 +0000 (07:22 +0000)
commita16ead8b10ab63e08c91afb852f29b32188b9afb
treeee94e952e0b2e517f3db11a9f4a2503e45daa21a
parent75c99c5aa86409f09616bfa46e723a0bc18e7e54
fix a bug I introduced in simplifycfg handling single entry phi
nodes. FoldSingleEntryPHINodes deletes the PHI, so there is no
need to delete it afterward.

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