Re: [PATCH] c++, coroutines: Tidy up awaiter variable checks.

2024-08-21 Thread Jason Merrill
On 8/21/24 4:34 AM, Iain Sandoe wrote: Tested on x86_64-darwin, powerpc64le-linux, and against cppcoro and folly coroutines testsuites, OK for trunk? thanks Iain --- 8< --- When we build an await expression, we might need to materialise the awaiter if it is a prvalue. This re-implements this u

[PATCH] c++, coroutines: Tidy up awaiter variable checks.

2024-08-21 Thread Iain Sandoe
Tested on x86_64-darwin, powerpc64le-linux, and against cppcoro and folly coroutines testsuites, OK for trunk? thanks Iain --- 8< --- When we build an await expression, we might need to materialise the awaiter if it is a prvalue. This re-implements this using core APIs instead of local code. gc