[clang] [Win32][Coroutine] Fix inalloca arguments lifetime in coroutines (PR #212331)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 31 06:10:14 PDT 2026
================
@@ -3998,6 +3998,22 @@ bool Expr::HasSideEffects(const ASTContext &Ctx,
return false;
}
+static bool containsCoroutineSuspendPoints(const Stmt *S) {
+ if (!S)
+ return false;
+ if (isa<CoawaitExpr>(S) || isa<CoyieldExpr>(S) ||
+ isa<DependentCoawaitExpr>(S))
+ return true;
+ for (const Stmt *Child : S->children())
----------------
etiennep-chromium wrote:
Neat, done.
Also moved to clang/lib/Sema/SemaExpr.cpp
https://github.com/llvm/llvm-project/pull/212331
More information about the cfe-commits
mailing list