mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
If there's a calling convention attach it to the rewind function call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ffe917f72
commit
82f149d794
@ -240,7 +240,9 @@ bool DwarfEHPrepare::LowerUnwinds() {
|
||||
}
|
||||
|
||||
// Create the call...
|
||||
CallInst::Create(RewindFunction, CreateReadOfExceptionValue(I), "", TI);
|
||||
CallInst *CI = CallInst::Create(RewindFunction,
|
||||
CreateReadOfExceptionValue(I), "", TI);
|
||||
CI->setCallingConv(TLI->getLibcallCallingConv(RTLIB::UNWIND_RESUME));
|
||||
// ...followed by an UnreachableInst.
|
||||
new UnreachableInst(TI->getContext(), TI);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user