[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 07:00:34 PST 2025


================
@@ -73,7 +73,7 @@ namespace {
       //   value of the expression to the unqualified, non-atomic version of
       //   the named type.
       if (!S.Context.getLangOpts().ObjC && !DestType->isRecordType() &&
-          !DestType->isArrayType()) {
+          !DestType->isArrayType() && !DestType.getPointerAuth()) {
----------------
AaronBallman wrote:

This is a bit of a surprise -- no other qualifier behaves this way, even the weird `_Atomic` qualifier. I think this needs comments explaining what's going on.

https://github.com/llvm/llvm-project/pull/100830


More information about the cfe-commits mailing list