[clang] [clang][PAC] Fix builtins that claim address discriminated types are bitwise compatible (PR #154490)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 21 00:21:51 PDT 2025


================
@@ -1438,6 +1438,10 @@ void CXXRecordDecl::addedMember(Decl *D) {
         data().StructuralIfLiteral = false;
     }
 
+    if (!data().HasTrivialSpecialMembers &&
+        T.hasAddressDiscriminatedPointerAuth())
+      data().HasTrivialSpecialMembers = true;
----------------
ojhunt wrote:

yes, so the question is why did nothing seem to break (as in what test would this break - it's possible that it gets masked by other pointer auth state)

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


More information about the cfe-commits mailing list