Skip to content
Snippets Groups Projects
Commit 3949b7c0 authored by Iain Sandoe's avatar Iain Sandoe
Browse files

c++, coroutines: Check for malformed functions before splitting.


This performs the same basic check that is done by finish_function
to catch cases where the function is so badly malformed that we
do not have a consistent binding level.

gcc/cp/ChangeLog:

	* coroutines.cc (split_coroutine_body_from_ramp): Check
	that the binding level is as expected before attempting
	to outline the function body.

Signed-off-by: default avatarIain Sandoe <iain@sandoe.co.uk>
parent cc8fc985
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment