ada: Plug small loophole in finalization machinery
commit64a485df891c615b9a9744589c0a36beb38604b3
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 22 Nov 2023 22:04:33 +0000 (22 23:04 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 19 Dec 2023 14:27:48 +0000 (19 15:27 +0100)
tree6ce76519c71b7a56daa7d867cd2520663cf1589c
parent5c374c0907b4da06c163e3d15f182d91f1114ff2
ada: Plug small loophole in finalization machinery

The path in Expand_N_If_Expression implementing the special optimization for
an unidimensional array type and dependent expressions with static bounds
fails to call Process_Transients_In_Expression on their list of actions.

gcc/ada/

* exp_ch4.adb (Expand_N_If_Expression): Also add missing calls to
Process_Transients_In_Expression on the code path implementing the
special optimization for an unidimensional array type and
dependent expressions with static bounds.
gcc/ada/exp_ch4.adb