[compiler-rt] r226167 - Fix compilation of compiler_rt against libunwind.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Thu Jan 15 06:27:38 PST 2015
Author: eugenis
Date: Thu Jan 15 08:27:38 2015
New Revision: 226167
URL: http://llvm.org/viewvc/llvm-project?rev=226167&view=rev
Log:
Fix compilation of compiler_rt against libunwind.
libunwind defines _Unwind_GetLanguageSpecificData as returning long
instead of (uint8_t *).
Modified:
compiler-rt/trunk/lib/builtins/gcc_personality_v0.c
Modified: compiler-rt/trunk/lib/builtins/gcc_personality_v0.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/gcc_personality_v0.c?rev=226167&r1=226166&r2=226167&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/gcc_personality_v0.c (original)
+++ compiler-rt/trunk/lib/builtins/gcc_personality_v0.c Thu Jan 15 08:27:38 2015
@@ -159,7 +159,7 @@ __gcc_personality_v0(int version, _Unwin
return _URC_CONTINUE_UNWIND;
/* There is nothing to do if there is no LSDA for this frame. */
- const uint8_t* lsda = _Unwind_GetLanguageSpecificData(context);
+ const uint8_t* lsda = (uint8_t*)_Unwind_GetLanguageSpecificData(context);
if ( lsda == (uint8_t*) 0 )
return _URC_CONTINUE_UNWIND;
More information about the llvm-commits
mailing list