Add this back in for now. There are still a few passes which create unwind instructio...
authorBill Wendling <isanbard@gmail.com>
Wed, 3 Aug 2011 01:07:57 +0000 (01:07 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 3 Aug 2011 01:07:57 +0000 (01:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136756 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/PathNumbering.cpp

index 070836529c00f53c40b9932bf1ee058107e591ed..0e3b6e69ce34ee54d0de2ba04d5e2839267624ba 100644 (file)
@@ -387,7 +387,7 @@ void BallLarusDag::buildNode(BLBlockNodeMap& inDag, BLNodeStack& dfsStack) {
 
     TerminatorInst* terminator = currentNode->getBlock()->getTerminator();
     if(isa<ReturnInst>(terminator) || isa<UnreachableInst>(terminator)
-       || isa<ResumeInst>(terminator))
+       || isa<ResumeInst>(terminator) || isa<UnwindInst>(terminator))
       addEdge(currentNode, getExit(),0);
 
     currentNode->setColor(BallLarusNode::GRAY);