================
@@ -557,7 +630,21 @@ set_registers(_Unwind_Exception* unwind_exception,
_Unwind_Context* context,
reinterpret_cast<uintptr_t>(unwind_exception));
_Unwind_SetGR(context, __builtin_eh_return_data_regno(1),
static_cast<uintptr_t>(results.ttypeIndex));
+#if __has_feature(ptrauth_qualifier)
+ auto stackPointer = _Unwind_GetGR(context, UNW_REG_SP);
----------------
kovdan01 wrote:
`UNW_REG_SP` and `unw_word_t` (see below) are declared in libunwind.h. While
I'm not sure if including this header here is a good idea (and I see that
you've removed that in e88ad93aa935f0ae7babc05f328a9b65cb22d4db), we definitely
need to provide declarations for these (otherwise we can't even compile).
Might also be related to this thread
https://github.com/llvm/llvm-project/pull/143230#discussion_r2240692361
https://github.com/llvm/llvm-project/pull/143230
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits