diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-05 23:43:11 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-05 23:43:11 +0000 |
commit | 30b5473d82125a99721e280eaba95ccd8abb741c (patch) | |
tree | 59b55b5debee3b90721c7916222ef94de504ea65 /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | f642c1b600767a163cc3b078cc6f95c9709970c3 (diff) | |
download | bcm5719-llvm-30b5473d82125a99721e280eaba95ccd8abb741c.tar.gz bcm5719-llvm-30b5473d82125a99721e280eaba95ccd8abb741c.zip |
Permit blocks to branch directly to a landing pad.
Treat the landing pad as a normal successor when that happens.
llvm-svn: 128961
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index a47709edb10..f95f4112aed 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -402,6 +402,11 @@ 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) { |