mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
rename the "exceptional" destination of an invoke instruction to the 'unwind' dest
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -489,7 +489,7 @@ void LowerSetJmp::visitInvokeInst(InvokeInst& II)
|
||||
if (!DFSBlocks.count(BB)) return;
|
||||
|
||||
BasicBlock* NormalBB = II.getNormalDest();
|
||||
BasicBlock* ExceptBB = II.getExceptionalDest();
|
||||
BasicBlock* ExceptBB = II.getUnwindDest();
|
||||
|
||||
Function* Func = BB->getParent();
|
||||
BasicBlock* NewExceptBB = new BasicBlock("InvokeExcept", Func);
|
||||
@@ -503,7 +503,7 @@ void LowerSetJmp::visitInvokeInst(InvokeInst& II)
|
||||
|
||||
new BranchInst(PrelimBBMap[Func], ExceptBB, IsLJExcept, NewExceptBB);
|
||||
|
||||
II.setExceptionalDest(NewExceptBB);
|
||||
II.setUnwindDest(NewExceptBB);
|
||||
++InvokesTransformed;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user