[clang] [RFC] Initial implementation of P2719 (PR #113510)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 2 00:01:26 PDT 2025


================
@@ -1586,8 +1597,22 @@ bool CoroutineStmtBuilder::makeNewAndDeleteExpr() {
   if (NewRef.isInvalid())
     return false;
 
-  SmallVector<Expr *, 2> NewArgs(1, FrameSize);
-  if (S.getLangOpts().CoroAlignedAllocation && PassAlignment)
+  SmallVector<Expr *, 3> NewArgs;
+  if (IAP.PassTypeIdentity) {
+    auto SpecializedTypeIdentity =
----------------
ojhunt wrote:

removed this as we can't currently get a reasonable model of the type of the coroutine allocation :-/

https://github.com/llvm/llvm-project/pull/113510


More information about the cfe-commits mailing list