[clang] [RFC] Initial implementation of P2719 (PR #113510)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 30 02:29:59 PST 2025
================
@@ -1110,9 +1138,10 @@ static bool findDeleteForPromise(Sema &S, SourceLocation Loc, QualType PromiseTy
// The deallocation function's name is looked up by searching for it in the
// scope of the promise type. If nothing is found, a search is performed in
// the global scope.
+ ImplicitDeallocationParameters IDP = {
+ alignedAllocationModeFromBool(Overaligned), SizedDeallocationMode::Yes};
if (S.FindDeallocationFunction(Loc, PointeeRD, DeleteName, OperatorDelete,
- /*Diagnose*/ true, /*WantSize*/ true,
- /*WantAligned*/ Overaligned))
+ PromiseType, IDP, /*Diagnose*/ true))
----------------
cor3ntin wrote:
```suggestion
PromiseType, IDP, /*Diagnose=*/true))
```
https://github.com/llvm/llvm-project/pull/113510
More information about the cfe-commits
mailing list