================ @@ -8899,18 +8899,42 @@ void Sema::CheckMemaccessArguments(const CallExpr *Call, << ArgIdx << FnName << PointeeTy << Call->getCallee()->getSourceRange()); else if (const auto *RT = PointeeTy->getAs<RecordType>()) { + + auto IsTriviallyCopyableCXXRecord = [](auto const *RT) { ---------------- AaronBallman wrote:
Actually, @erichkeane just reminded me that we have `QualType::isTriviallyCopyableType()` -- that's an even better interface to use IMO. https://github.com/llvm/llvm-project/pull/111434 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits