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 | a3438c8bc2cc146d155c431063627c6b55c0e0cd (patch) | |
| tree | f649083e2fda7e8e01183f1d166c18eb7c07d9b9 /llvm/lib/CodeGen | |
| parent | e072f8eedbd1d7b91f9daeb6ff80f32a80f1907c (diff) | |
| download | bcm5719-llvm-a3438c8bc2cc146d155c431063627c6b55c0e0cd.tar.gz bcm5719-llvm-a3438c8bc2cc146d155c431063627c6b55c0e0cd.zip | |
If there's a calling convention attach it to the rewind function call.
llvm-svn: 80976
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/DwarfEHPrepare.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/DwarfEHPrepare.cpp b/llvm/lib/CodeGen/DwarfEHPrepare.cpp index 16581112b66..a2e6068ff87 100644 --- a/llvm/lib/CodeGen/DwarfEHPrepare.cpp +++ b/llvm/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); |

