[Ada] Avoid premature finalization of a function result
authorSteve Baird <baird@adacore.com>
Fri, 26 Jun 2020 00:15:50 +0000 (17:15 -0700)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 16 Oct 2020 07:31:31 +0000 (03:31 -0400)
commit56bedb147ec7829c11f20fb613ef5780ad106e4d
tree091faf5bd8aef08fab7bb64dabbe57ed0fdd7c5e
parentd931c94ea2048db6a85e9f1685404c2d210eef4a
[Ada] Avoid premature finalization of a function result

gcc/ada/

* exp_util.adb (Is_Related_To_Func_Return): Cope with the case
where the FE introduces a type conversion.
gcc/ada/exp_util.adb