[compiler-rt] r347106 - Revert "Cast the 2nd argument of _Unwind_SetIP() to _Unwind_Ptr"
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 16 15:00:28 PST 2018
Author: kamil
Date: Fri Nov 16 15:00:28 2018
New Revision: 347106
URL: http://llvm.org/viewvc/llvm-project?rev=347106&view=rev
Log:
Revert "Cast the 2nd argument of _Unwind_SetIP() to _Unwind_Ptr"
_Unwind_Ptr is unknown on some targets.
Detected on green-dragon-21 (MacPro Late 2013 | OS X 10.14(18A391) | Xcode 10.1(10B61)).
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=347106&r1=347105&r2=347106&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/gcc_personality_v0.c (original)
+++ compiler-rt/trunk/lib/builtins/gcc_personality_v0.c Fri Nov 16 15:00:28 2018
@@ -241,7 +241,7 @@ __gcc_personality_v0(int version, _Unwin
_Unwind_SetGR(context, __builtin_eh_return_data_regno(0),
(uintptr_t)exceptionObject);
_Unwind_SetGR(context, __builtin_eh_return_data_regno(1), 0);
- _Unwind_SetIP(context, (_Unwind_Ptr)(funcStart + landingPad));
+ _Unwind_SetIP(context, (funcStart + landingPad));
return _URC_INSTALL_CONTEXT;
}
}
More information about the llvm-commits
mailing list