[Ada] Implement missing function result finalization.
authorSteve Baird <baird@adacore.com>
Sat, 8 Aug 2020 22:04:21 +0000 (15:04 -0700)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 21 Oct 2020 07:22:50 +0000 (03:22 -0400)
commit3d3378fbb2f0183d0b6bfc41187c941dc57f7dcc
tree0960b998a0714563bfcef72680175fbe6d2826cb
parentcb7584a41d9f565a90fc24c418b2c7f0233ba31e
[Ada] Implement missing function result finalization.

gcc/ada/

* exp_ch6.adb (Insert_Post_Call_Actions): When a function's
result type requires finalization and we decide to make copy of
a call to the function and subsequently refer only to the copy,
then don't forget to finalize the original function result
object.
gcc/ada/exp_ch6.adb