[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:23:14 PDT 2025


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

That is actually just complete nonsense, and it seems really weird that nothing broke at all.

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


More information about the cfe-commits mailing list