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

Gabor Greif ggreif at gmail.com
Thu Sep 3 21:14:56 PDT 2009


There are tabs in this commit...

Cheers,

   Gabor

On 4 Sep., 03:14, Eric Christopher <echri... at apple.com> wrote:
> 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/DwarfEHPre...
>
> =========================================================================== ===
> --- 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);
>
> _______________________________________________
> llvm-commits mailing list
> llvm-comm... at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list