================ @@ -9784,10 +9850,16 @@ bool Sema::ShouldDeleteSpecialMember(CXXMethodDecl *MD, // results in an ambiguity or in a function that is deleted or inaccessible if (CSM == CXXSpecialMemberKind::Destructor && MD->isVirtual()) { FunctionDecl *OperatorDelete = nullptr; + QualType DeallocType = Context.getRecordType(RD); DeclarationName Name = Context.DeclarationNames.getCXXOperatorName(OO_Delete); + ImplicitDeallocationParameters IDP = { + DeallocType, + typeAwareAllocationModeFromBool(getLangOpts().TypeAwareAllocators), + AlignedAllocationMode::No, SizedDeallocationMode::No}; if (FindDeallocationFunction(MD->getLocation(), MD->getParent(), Name, - OperatorDelete, /*Diagnose*/false)) { + OperatorDelete, IDP, + /*Diagnose*/ false)) { ---------------- ojhunt wrote:
done https://github.com/llvm/llvm-project/pull/113510 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits