]> git.ipfire.org Git - thirdparty/gcc.git/commit
coroutines: Fix a typo in rewriting the function.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 23 Jun 2021 07:13:22 +0000 (08:13 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 9 Jul 2021 16:43:25 +0000 (17:43 +0100)
commit0d5db79a61af150cba48612c9fbc3267262adb93
treea335b660790bca16845f6d281d564cd1956ba209
parent41bd1b190358fce213f5add8396faf14a32d5c23
coroutines: Fix a typo in rewriting the function.

When amending the function re-write code, I made a typo in
the block connections.  This has not shown up in any test
fails (as far as can be seen) but is a regression in debug
info.

Fixed thus.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/cp/ChangeLog:

* coroutines.cc
(coro_rewrite_function_body): Connect the replacement
function block to the block nest correctly.
gcc/cp/coroutines.cc