ada: Fix small fallout of previous change
commit7c784ca077ce181bb247c6f17407da5ee0b46b0c
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 5 Apr 2023 11:56:42 +0000 (5 13:56 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 29 May 2023 08:23:20 +0000 (29 10:23 +0200)
tree648083950d3f84bc719ce1ac35153678dc5635ca
parent21b0ecb9853071f0642ee1fba7861e69789d0727
ada: Fix small fallout of previous change

The same guard must be added to Expand_Simple_Function_Return as the one
that was added to Analyze_Function_Return.

gcc/ada/

* exp_ch6.adb (Expand_Simple_Function_Return): Deal with a rewriting
of the simple return during the adjustment of its expression.
gcc/ada/exp_ch6.adb