mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user