================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to