[llvm-commits] [llvm] r136751 - /llvm/trunk/lib/Analysis/PathNumbering.cpp
Chris Lattner
clattner at apple.com
Tue Aug 2 17:55:18 PDT 2011
On Aug 2, 2011, at 5:30 PM, Bill Wendling wrote:
> 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.
I guess this is safe because no one uses unwind?
-Chris
>
> 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);
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list