ada: Simplify expansion of positional aggregates
commitc8c37d2bfde00ec3ac8083502dbbe04f0b213298
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 16 Mar 2023 09:36:20 +0000 (16 10:36 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 26 May 2023 07:29:15 +0000 (26 09:29 +0200)
treea889df0af0d109a03d5ad9630a7174a6599e8a88
parentd874abd8b7f4574d5a3ad8a918abbf7608250dbf
ada: Simplify expansion of positional aggregates

Code cleanup; semantics is unaffected.

gcc/ada/

* exp_aggr.adb (Build_Constrained_Type): Use List_Length to count
expressions in consecutive subaggregates.
gcc/ada/exp_aggr.adb