================ @@ -1773,14 +1776,40 @@ static bool isNonPlacementDeallocationFunction(Sema &S, FunctionDecl *FD) { namespace { struct UsualDeallocFnInfo { UsualDeallocFnInfo() : Found(), FD(nullptr) {} - UsualDeallocFnInfo(Sema &S, DeclAccessPair Found) + UsualDeallocFnInfo(Sema &S, DeclAccessPair Found, QualType AllocType) : Found(Found), FD(dyn_cast<FunctionDecl>(Found->getUnderlyingDecl())), Destroying(false), HasSizeT(false), HasAlignValT(false), - CUDAPref(SemaCUDA::CFP_Native) { - // A function template declaration is never a usual deallocation function. - if (!FD) - return; + HasTypeIdentity(false), CUDAPref(SemaCUDA::CFP_Native) { + // A function template declaration is only a usual deallocation function + // if it is a typed delete ---------------- AaronBallman wrote:
```suggestion // if it is a typed delete. ``` 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