summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/Basic/StmtNodes.td
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/Basic/StmtNodes.td')
-rw-r--r--clang/include/clang/Basic/StmtNodes.td5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/StmtNodes.td b/clang/include/clang/Basic/StmtNodes.td
index 6e665322e2d..7c4b9d28d74 100644
--- a/clang/include/clang/Basic/StmtNodes.td
+++ b/clang/include/clang/Basic/StmtNodes.td
@@ -145,8 +145,9 @@ def LambdaExpr : DStmt<Expr>;
def CXXFoldExpr : DStmt<Expr>;
// C++ Coroutines TS expressions
-def CoawaitExpr : DStmt<Expr>;
-def CoyieldExpr : DStmt<Expr>;
+def CoroutineSuspendExpr : DStmt<Expr, 1>;
+def CoawaitExpr : DStmt<CoroutineSuspendExpr>;
+def CoyieldExpr : DStmt<CoroutineSuspendExpr>;
// Obj-C Expressions.
def ObjCStringLiteral : DStmt<Expr>;
OpenPOWER on IntegriCloud