public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3290] coroutines : Add a missed begin/finish else clause to the codegen.
@ 2021-09-01 13:26 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2021-09-01 13:26 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:21b4d0ef543d68187d258415b51d0d6676af89fd
commit r12-3290-g21b4d0ef543d68187d258415b51d0d6676af89fd
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Wed Mar 3 16:14:24 2021 +0000
coroutines : Add a missed begin/finish else clause to the codegen.
Minor code-gen correction.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/cp/ChangeLog:
* coroutines.cc (build_actor_fn): Add begin/finish clauses
to the initial test in the actor function.
Diff:
---
gcc/cp/coroutines.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc
index 3bb33cc9eb9..ceb3d3be75e 100644
--- a/gcc/cp/coroutines.cc
+++ b/gcc/cp/coroutines.cc
@@ -2331,6 +2331,7 @@ build_actor_fn (location_t loc, tree coro_frame_type, tree actor, tree fnbody,
finish_switch_stmt (destroy_dispatcher);
finish_then_clause (lsb_if);
+ begin_else_clause (lsb_if);
tree dispatcher = begin_switch_stmt ();
finish_switch_cond (rat, dispatcher);
@@ -2368,6 +2369,7 @@ build_actor_fn (location_t loc, tree coro_frame_type, tree actor, tree fnbody,
/* Insert the prototype dispatcher. */
finish_switch_stmt (dispatcher);
+ finish_else_clause (lsb_if);
finish_if_stmt (lsb_if);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-01 13:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 13:26 [gcc r12-3290] coroutines : Add a missed begin/finish else clause to the codegen Iain D Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).