ada: Seize opportunity to reuse List_Length
commit0c29a990a645e24d48bf06adb7e1dca104b79335
authorRonan Desplanques <desplanques@adacore.com>
Fri, 29 Sep 2023 09:25:18 +0000 (29 11:25 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 19 Oct 2023 14:35:21 +0000 (19 16:35 +0200)
treec63ebc680c06dc81b44e012165d69c7594fb8cff
parent7b1b787baa6ecc03a62b0db043a856cdb6463146
ada: Seize opportunity to reuse List_Length

This patch is intended as a readability improvement. It doesn't
change the behavior of the compiler.

gcc/ada/

* sem_ch3.adb (Constrain_Array): Replace manual list length
computation by call to List_Length.
gcc/ada/sem_ch3.adb