================ @@ -5288,13 +5290,22 @@ class CoroutineSuspendExpr : public Expr { } CoroutineSuspendExpr(StmtClass SC, EmptyShell Empty) : Expr(SC, Empty) { + CoroutineSuspendExprBits.UseAwaitSuspendDestroy = false; SubExprs[SubExpr::Operand] = nullptr; SubExprs[SubExpr::Common] = nullptr; SubExprs[SubExpr::Ready] = nullptr; SubExprs[SubExpr::Suspend] = nullptr; SubExprs[SubExpr::Resume] = nullptr; } + bool useAwaitSuspendDestroy() const { + return CoroutineSuspendExprBits.UseAwaitSuspendDestroy; + } + + void setUseAwaitSuspendDestroy(bool Use) { ---------------- ChuanqiXu9 wrote:
nit ```suggestion void setUseAwaitSuspendDestroy(bool Use = true) { ``` https://github.com/llvm/llvm-project/pull/152623 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits