diff --git a/gcc/cp/cp-tree.def b/gcc/cp/cp-tree.def index 1454802bf68..99851eb780f 100644 --- a/gcc/cp/cp-tree.def +++ b/gcc/cp/cp-tree.def @@ -594,9 +594,9 @@ DEFTREECODE (CO_YIELD_EXPR, "co_yield", tcc_expression, 2) /* The co_return expression is used to support coroutines. Op0 is the original expr, can be void (for use in diagnostics) - Op2 is the promise return_xxxx call for Op0. */ + Op1 is the promise return_xxxx call for for the expression given. */ -DEFTREECODE (CO_RETURN_EXPR, "co_return", tcc_expression, 2) +DEFTREECODE (CO_RETURN_EXPR, "co_return", tcc_statement, 2) /* Local variables: