diff options
author | Eric Christopher <echristo@apple.com> | 2009-09-04 01:14:14 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-09-04 01:14:14 +0000 |
commit | 82f149d794dcb705a05e9e260402cbf3f36f1957 (patch) | |
tree | e435bd5a07530d0921e31f544642507e47253dba /lib/CodeGen/DwarfEHPrepare.cpp | |
parent | 5ffe917f72a952a145e1490b9e2cd230e2ce81f6 (diff) | |
download | external_llvm-82f149d794dcb705a05e9e260402cbf3f36f1957.tar.gz external_llvm-82f149d794dcb705a05e9e260402cbf3f36f1957.tar.bz2 external_llvm-82f149d794dcb705a05e9e260402cbf3f36f1957.zip |
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
Diffstat (limited to 'lib/CodeGen/DwarfEHPrepare.cpp')
-rw-r--r-- | lib/CodeGen/DwarfEHPrepare.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp index 16581112b6..a2e6068ff8 100644 --- a/lib/CodeGen/DwarfEHPrepare.cpp +++ b/lib/CodeGen/DwarfEHPrepare.cpp @@ -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); |