Replace the 'UnwindInst' check with a check for 'ResumeInst', which also exits
authorBill Wendling <isanbard@gmail.com>
Wed, 3 Aug 2011 00:30:19 +0000 (00:30 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 3 Aug 2011 00:30:19 +0000 (00:30 +0000)
the function, because the UnwindInst is going away.

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

lib/Analysis/PathNumbering.cpp

index 7c584daef73499c3944ea3963165d429980db643..070836529c00f53c40b9932bf1ee058107e591ed 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<UnwindInst>(terminator))
+       || isa<ResumeInst>(terminator))
       addEdge(currentNode, getExit(),0);
 
     currentNode->setColor(BallLarusNode::GRAY);