================ @@ -3423,7 +3429,7 @@ bool FunctionDecl::isReplaceableGlobalAllocationFunction( // In C++14, the next parameter can be a 'std::size_t' for sized delete. bool IsSizedDelete = false; - if (Ctx.getLangOpts().SizedDeallocation && + if ((IsTypeAware || Ctx.getLangOpts().SizedDeallocation) && ---------------- cor3ntin wrote:
I don't understand why we need to check for `IsTypeAware` here. I would expect sized deallocation and type aware allocations to be independent features 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