ada: Fix memory leak in multi-dimensional array aggregate of Vector
commit5ad28c8ff6a78082eaa836c2d475ffb6b0b6f08b
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 4 Apr 2023 22:03:27 +0000 (5 00:03 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 29 May 2023 08:23:20 +0000 (29 10:23 +0200)
tree6019f8067781d559d206e2bb357131033a5abcb3
parent9098ae6cde6f6ec9818c180f28a7a7f7ebc6699d
ada: Fix memory leak in multi-dimensional array aggregate of Vector

It comes from a superfluous adjustment for subarray components.

gcc/ada/

* exp_aggr.adb (Initialize_Array_Component): Fix condition detecting
the nested case that requires an adjustment.
gcc/ada/exp_aggr.adb