diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-03 00:30:19 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-03 00:30:19 +0000 |
commit | 19308a1ea1c34e3dbed7b801408b2a8fcaba73f5 (patch) | |
tree | 2ee57e1926622b208fd93b709b6f8e16919ac024 /lib/Analysis/PathNumbering.cpp | |
parent | 3f5beede1bb97ba4e06dc300e00b70e1013e7216 (diff) |
Replace the 'UnwindInst' check with a check for 'ResumeInst', which also exits
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
Diffstat (limited to 'lib/Analysis/PathNumbering.cpp')
-rw-r--r-- | lib/Analysis/PathNumbering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/PathNumbering.cpp b/lib/Analysis/PathNumbering.cpp index 7c584daef7..070836529c 100644 --- a/lib/Analysis/PathNumbering.cpp +++ b/lib/Analysis/PathNumbering.cpp @@ -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); |