]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++, coroutines: Provide a CTOR for a callback object [NFC].
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 31 Jul 2024 13:51:31 +0000 (14:51 +0100)
committerIain Sandoe <iains@gcc.gnu.org>
Fri, 2 Aug 2024 10:43:59 +0000 (11:43 +0100)
commit00019b88e714c29c387a3f492155366c921474a0
treee84ff8e60bf6ad90079013c286774714d476a6ee
parentffd521d8dcddcd4cfe1f0f10890a2cb8b6e6493f
c++, coroutines: Provide a CTOR for a callback object [NFC].

This provides and uses a CTOR to initialize the object used in
tree walks to track local variable uses.  This makes the idiom
used consistent.

gcc/cp/ChangeLog:

* coroutines.cc (struct local_vars_frame_data): Add a
CTOR.
(morph_fn_to_coro): Use CTOR for local_vars_frame_data
instead of brace init.

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