On 1/20/20 11:08 PM, JunMa wrote:
Hi
This patch does minor fix on changing context of label_decl from
original function to actor function which avoid assertion in gimplify pass.

Bootstrap and test on X86_64, is it OK?

ok, thanks

gcc/cp
2020-01-21  Jun Ma <ju...@linux.alibaba.com>

         * coroutines.cc (transform_await_wrapper): Set actor funcion as
         new context of label_decl.
         (build_actor_fn): Fill new field of await_xform_data.

gcc/testsuite
2020-01-21  Jun Ma <ju...@linux.alibaba.com>

         * g++.dg/coroutines/co-await-04-control-flow.C: Add label.


--
Nathan Sidwell

Reply via email to