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.
(cherry picked from commit
21b4d0ef543d68187d258415b51d0d6676af89fd)
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);
/* Insert the prototype dispatcher. */
finish_switch_stmt (dispatcher);
+ finish_else_clause (lsb_if);
finish_if_stmt (lsb_if);