aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-05-05 20:27:27 +0100
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 12:57:38 -0300
commit39a929b26db48e7814b6bcbb4436b31ffd3cdd73 (patch)
tree9489d7cf14f0b2c8f799a1ab5a10ded768d1654c /gcc/cp/constexpr.c
parent87d3665c36ff38fd0414f05a2a2011bec24f83ae (diff)
downloadgcc-39a929b26db48e7814b6bcbb4436b31ffd3cdd73.zip
gcc-39a929b26db48e7814b6bcbb4436b31ffd3cdd73.tar.gz
gcc-39a929b26db48e7814b6bcbb4436b31ffd3cdd73.tar.bz2
coroutines: Replace extra checks for co_yield with asserts.
The lowering of co_yield to a promise method call and a co_await was moved to the initial analysis phase with the intention of avoiding the need to handle the two cases later. Before removing the later checks entirely, this patch replaces them with checking asserts. gcc/cp/Changelog: 2020-05-05 Iain Sandoe <iain@sandoe.co.uk> * coroutines.cc (transform_await_wrapper): Check that we have no unlowered co_yields. (captures_temporary): Likewise. (register_awaits): Likewise.
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions