coroutines: Partial reversion of r11-437-g5ef067eb14d4.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 21 May 2020 14:06:53 +0000 (15:06 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 21 May 2020 18:55:26 +0000 (19:55 +0100)
commitf898793b4545483adaf62c5efbc78cee518884e6
tree7838a3cc7aabe8a347badfae9525685b96f91d14
parent149c8c7c27a17a2941d07e2f76b1e1c823e2fa80
coroutines: Partial reversion of r11-437-g5ef067eb14d4.

co_returns are statements, not expressions; they do not need
to be wrapped in an EXPR_STMT.

gcc/cp/ChangeLog:

* coroutines.cc (finish_co_return_stmt): Revert change to use
finish_expr_stmt.
gcc/cp/coroutines.cc