[clang] [RFC] Initial implementation of P2719 (PR #113510)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 7 00:20:43 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list