================ @@ -3433,7 +3439,8 @@ bool FunctionDecl::isReplaceableGlobalAllocationFunction( // In C++17, the next parameter can be a 'std::align_val_t' for aligned // new/delete. - if (Ctx.getLangOpts().AlignedAllocation && !Ty.isNull() && Ty->isAlignValT()) { + if ((IsTypeAware || Ctx.getLangOpts().AlignedAllocation) && !Ty.isNull() && + Ty->isAlignValT()) { ---------------- cor3ntin wrote:
Same comment as above 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