[clang] [clang] Ensure correct copying of records with authenticated fields (PR #136783)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 23 12:57:34 PDT 2025


================
@@ -2801,6 +2801,10 @@ static bool isTriviallyCopyableTypeImpl(const QualType &type,
   if (type.hasNonTrivialObjCLifetime())
     return false;
 
+  QualType::PrimitiveCopyKind PCK = type.isNonTrivialToPrimitiveCopy();
+  if (PCK != QualType::PCK_Trivial && PCK != QualType::PCK_VolatileTrivial)
----------------
ojhunt wrote:

- [ ] I'm trying to find the origin of this particular check, as I'm not sure how it relates to pointer auth copying semantics



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


More information about the cfe-commits mailing list