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 | ae3380faff2bc8b4d771f2b8036868e05e228935 (patch) | |
tree | 76e1bae8e2e1ab58af3d04b33d4994ddb5311002 | |
parent | 3b660f8585494bda88402f9cb59e3d50581a92fa (diff) | |
download | bcm5719-llvm-ae3380faff2bc8b4d771f2b8036868e05e228935.tar.gz bcm5719-llvm-ae3380faff2bc8b4d771f2b8036868e05e228935.zip |
Replace the 'UnwindInst' check with a check for 'ResumeInst', which also exits
the function, because the UnwindInst is going away.
llvm-svn: 136751
-rw-r--r-- | llvm/lib/Analysis/PathNumbering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/PathNumbering.cpp b/llvm/lib/Analysis/PathNumbering.cpp index 7c584daef73..070836529c0 100644 --- a/llvm/lib/Analysis/PathNumbering.cpp +++ b/llvm/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); |