Revert r128961 because it didn't include a test and causes the verifier to fail
authorCameron Zwarich <zwarich@apple.com>
Thu, 19 May 2011 01:56:19 +0000 (01:56 +0000)
committerCameron Zwarich <zwarich@apple.com>
Thu, 19 May 2011 01:56:19 +0000 (01:56 +0000)
on CodeGen/X86/2007-05-07-InvokeSRet.ll. There is probably a bug here that was
fixed by r128961, but since there is no test or reference to a source file I have
to revert it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131618 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineVerifier.cpp

index fa9092b5ce886905859c166c48d49997f39125cf..f3478c4790c9cabaa514701bb402df6aece44960 100644 (file)
@@ -410,11 +410,6 @@ MachineVerifier::visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) {
   SmallVector<MachineOperand, 4> Cond;
   if (!TII->AnalyzeBranch(*const_cast<MachineBasicBlock *>(MBB),
                           TBB, FBB, Cond)) {
-    // If the block branches directly to a landing pad successor, pretend that
-    // the landing pad is a normal block.
-    LandingPadSuccs.erase(TBB);
-    LandingPadSuccs.erase(FBB);
-
     // Ok, AnalyzeBranch thinks it knows what's going on with this block. Let's
     // check whether its answers match up with reality.
     if (!TBB && !FBB) {