[llvm-commits] [llvm] r80976 - /llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp

Eric Christopher echristo at apple.com
Thu Sep 3 18:14:15 PDT 2009


Author: echristo
Date: Thu Sep  3 20:14:14 2009
New Revision: 80976

URL: http://llvm.org/viewvc/llvm-project?rev=80976&view=rev
Log:
If there's a calling convention attach it to the rewind function call.

Modified:
    llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp?rev=80976&r1=80975&r2=80976&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfEHPrepare.cpp Thu Sep  3 20:14:14 2009
@@ -240,7 +240,9 @@
     }
 
     // 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);
 





More information about the llvm-commits mailing list