]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++, coroutines: Fix a typo in checking for void expression types.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 24 Jul 2024 19:59:10 +0000 (20:59 +0100)
committerIain Sandoe <iains@gcc.gnu.org>
Fri, 2 Aug 2024 10:36:22 +0000 (11:36 +0100)
commit370a0dee5556941c215c2b3fc61a8bcc40ae4942
tree0d6fc96ede2ecd289358afe85512ee2b1f22268d
parent33baa20c5cdcf5ff8164606115f00aa30f559312
c++, coroutines: Fix a typo in checking for void expression types.

The current code fails to check for void expression types because it does
not looup the type.  Fixed thus.

gcc/cp/ChangeLog:

* coroutines.cc (replace_continue): Look up expression type.

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