aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2021-03-03 16:14:24 +0000
committerIain Sandoe <iain@sandoe.co.uk>2021-09-01 14:26:03 +0100
commit21b4d0ef543d68187d258415b51d0d6676af89fd (patch)
tree159dbcc474c2b661ea3021888e9a262620f2c73a /gcc
parent8406ed9af2655479a9c8469d7acca2cf5784f5d6 (diff)
downloadgcc-21b4d0ef543d68187d258415b51d0d6676af89fd.zip
gcc-21b4d0ef543d68187d258415b51d0d6676af89fd.tar.gz
gcc-21b4d0ef543d68187d258415b51d0d6676af89fd.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/coroutines.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc
index 3bb33cc..ceb3d3b 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);