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:
Eric Christopher 2009-09-04 01:14:14 +00:00
parent 5ffe917f72
commit 82f149d794

View File

@ -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);