aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivopts.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-04-08 08:15:00 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-04-09 08:25:52 +0100
commit926d39c3816772acde857a8510480d9b287ef760 (patch)
treed155c3ca3048e6ce560bb21d00b498019be285db /gcc/tree-ssa-loop-ivopts.c
parentfe1837143f1bf1d6b072a3973b00576ee17c30a9 (diff)
downloadgcc-926d39c3816772acde857a8510480d9b287ef760.zip
gcc-926d39c3816772acde857a8510480d9b287ef760.tar.gz
gcc-926d39c3816772acde857a8510480d9b287ef760.tar.bz2
coroutines: Add cleanups, where required, to statements with captured references.
When we promote captured temporaries to local variables, we also remove their initializers from the relevant call expression. This means that we should recompute the need for a cleanup expression once the set of temporaries that remains becomes known. gcc/cp/ChangeLog: 2020-04-08 Iain Sandoe <iain@sandoe.co.uk> Jun Ma <JunMa@linux.alibaba.com> * coroutines.cc (maybe_promote_captured_temps): Add a cleanup expression, if needed, to any call from which we promoted temporaries captured by reference.
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
0 files changed, 0 insertions, 0 deletions