diff options
author | Jason Merrill <jason@redhat.com> | 2025-02-03 10:35:33 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2025-04-19 10:01:53 -0400 |
commit | 6beb0a14aacd84ec49646237fc0f69c6765f956e (patch) | |
tree | cee1de01cad1c92ea5998bfd27062688730889da /libjava/java/nio/DoubleViewBufferImpl.h | |
parent | 1dd769b3d0d9251649dcb645d7ed6c4ba2202306 (diff) | |
download | gcc-6beb0a14aacd84ec49646237fc0f69c6765f956e.zip gcc-6beb0a14aacd84ec49646237fc0f69c6765f956e.tar.gz gcc-6beb0a14aacd84ec49646237fc0f69c6765f956e.tar.bz2 |
c++: minor EXPR_STMT cleanup
I think it was around PR118574 that I noticed a few cases where we were
unnecessarily wrapping a statement tree in a further EXPR_STMT. Let's avoid
that and also use finish_expr_stmt in a few places in the coroutines code
that were building EXPR_STMT directly.
gcc/cp/ChangeLog:
* coroutines.cc (coro_build_expr_stmt)
(coro_build_cvt_void_expr_stmt): Remove.
(build_actor_fn): Use finish_expr_stmt.
* semantics.cc (finish_expr_stmt): Avoid wrapping statement in
EXPR_STMT.
(finish_stmt_expr_expr): Add comment.
Diffstat (limited to 'libjava/java/nio/DoubleViewBufferImpl.h')
0 files changed, 0 insertions, 0 deletions