================ @@ -1131,13 +1132,18 @@ static bool isTrivialForMSVC(const CXXRecordDecl *RD, QualType Ty, return false; if (RD->hasNonTrivialCopyAssignment()) return false; + if (RD->needsImplicitCopyAssignment() && !RD->hasSimpleCopyAssignment()) ---------------- MaxEW707 wrote:
I didn't find a `defaultedCopyAssignmentIsDeleted()` method on `CXXRecordDecl` however `hasSimpleCopyAssignment()` does what we want here when combined with `needsImplicitCopyAssignment()`. Let me know if there is a better check to capture implicitly declared but deleted copy assignment operators on the record. https://github.com/llvm/llvm-project/pull/90547 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits