[clang] [clang][PAC][NFC] Provide addition support macros to ptrauth.h (PR #161027)
Anatoly Trosinenko via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 7 04:53:10 PDT 2025
================
@@ -199,6 +199,25 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t;
ptrauth_auth_and_resign(__value, __old_key, __old_data, \
ptrauth_key_function_pointer, 0)
+/* Cast a value to the given type without changing any signature.
+
+ The type must be a pointer sized type compatible with the __ptrauth
+ qualifier.
+ The value must be an expression with a non-address diversified pointer
+ authentication schema, and will be converted to an rvalue prior to the cast.
+ The result has type given by the first argument.
----------------
atrosinenko wrote:
Probably neither value nor result type can be address-diversified? Or is it possible to request address diversity on the result by some ะก++ trick?
https://github.com/llvm/llvm-project/pull/161027
More information about the cfe-commits
mailing list