[llvm-commits] [llvm] r136751 - /llvm/trunk/lib/Analysis/PathNumbering.cpp
Bill Wendling
isanbard at gmail.com
Tue Aug 2 17:30:20 PDT 2011
Author: void
Date: Tue Aug 2 19:30:19 2011
New Revision: 136751
URL: http://llvm.org/viewvc/llvm-project?rev=136751&view=rev
Log:
Replace the 'UnwindInst' check with a check for 'ResumeInst', which also exits
the function, because the UnwindInst is going away.
Modified:
llvm/trunk/lib/Analysis/PathNumbering.cpp
Modified: llvm/trunk/lib/Analysis/PathNumbering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/PathNumbering.cpp?rev=136751&r1=136750&r2=136751&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/PathNumbering.cpp (original)
+++ llvm/trunk/lib/Analysis/PathNumbering.cpp Tue Aug 2 19:30:19 2011
@@ -387,7 +387,7 @@
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);
More information about the llvm-commits
mailing list