Cast the 2nd argument of _Unwind_SetIP() to _Unwind_Ptr
This modification is require for NetBSD with GCC, as there is a
custom unwind.h header implementation with different types.
No functional change intended for others.
Cherry-picked chunk from D33878.
@@ -241,7 +241,7 @@ __gcc_personality_v0(int version, _Unwind_Action actions,
_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, (funcStart + landingPad));
+ _Unwind_SetIP(context, (_Unwind_Ptr)(funcStart + landingPad));
return _URC_INSTALL_CONTEXT;
}
}
