@@ -1367,13 +1367,13 @@ UnwindCursor<A, R>::UnwindCursor(unw_context_t *context, A &as)
13671367 " UnwindCursor<> does not fit in unw_cursor_t" );
13681368 static_assert ((alignof (UnwindCursor<A, R>) <= alignof (unw_cursor_t )),
13691369 " UnwindCursor<> requires more alignment than unw_cursor_t" );
1370- memset (&_info, 0 , sizeof (_info));
1370+ memset (static_cast < void *>( &_info) , 0 , sizeof (_info));
13711371}
13721372
13731373template <typename A, typename R>
13741374UnwindCursor<A, R>::UnwindCursor(A &as, void *)
13751375 : _addressSpace(as), _unwindInfoMissing(false ), _isSignalFrame(false ) {
1376- memset (&_info, 0 , sizeof (_info));
1376+ memset (static_cast < void *>( &_info) , 0 , sizeof (_info));
13771377 // FIXME
13781378 // fill in _registers from thread arg
13791379}
@@ -1998,13 +1998,11 @@ bool UnwindCursor<A, R>::getInfoFromCompactEncodingSection(
19981998#if __has_feature(ptrauth_calls)
19991999 // The GOT for the personality function was signed address authenticated.
20002000 // Resign it as a regular function pointer.
2001- const auto discriminator =
2002- ptrauth_blend_discriminator (&_info.handler ,
2003- __ptrauth_unwind_upi_handler_disc);
2004- void *signedPtr =
2005- ptrauth_auth_and_resign ((void *)personality, ptrauth_key_function_pointer,
2006- personalityPointer, ptrauth_key_function_pointer,
2007- discriminator);
2001+ const auto discriminator = ptrauth_blend_discriminator (
2002+ &_info.handler , __ptrauth_unwind_upi_handler_disc);
2003+ void *signedPtr = ptrauth_auth_and_resign (
2004+ (void *)personality, ptrauth_key_function_pointer, personalityPointer,
2005+ ptrauth_key_function_pointer, discriminator);
20082006 personality = (__typeof (personality))signedPtr;
20092007#endif
20102008 if (log)
@@ -3229,7 +3227,7 @@ template <typename A, typename R> int UnwindCursor<A, R>::step(bool stage2) {
32293227template <typename A, typename R>
32303228void UnwindCursor<A, R>::getInfo(unw_proc_info_t *info) {
32313229 if (_unwindInfoMissing)
3232- memset (info, 0 , sizeof (*info));
3230+ memset (static_cast < void *>( info) , 0 , sizeof (*info));
32333231 else
32343232 *info = _info;
32353233}
0 commit comments