================
@@ -1438,6 +1438,10 @@ void CXXRecordDecl::addedMember(Decl *D) {
data().StructuralIfLiteral = false;
}
+ if (!data().HasTrivialSpecialMembers &&
+ T.hasAddressDiscriminatedPointerAuth())
+ data().HasTrivialSpecialMembers = true;
----------------
ojhunt wrote:
In C we already essentially introduce a copy constructor :D
We could in principle 0 out that field. I may actually just add an assert to
that fact as the vtable and/or address discriminated fields should already
result in this.
https://github.com/llvm/llvm-project/pull/154490
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits