]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix small thinko in previous change to two-pass aggregate expansion
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 13 Dec 2024 19:50:44 +0000 (20:50 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 6 Jan 2025 11:24:02 +0000 (12:24 +0100)
commit5d4e9c7043cdda9651353d6c5d56a0522a397ad2
tree80b8a4690cf8e35d47bbab806422093095eb23ca
parent6735679c2bd328f0a77cb022a18d613e9236f8af
ada: Fix small thinko in previous change to two-pass aggregate expansion

We need a type tailored to the base index type to compute the length.

gcc/ada/ChangeLog:

* exp_aggr.adb (Two_Pass_Aggregate_Expansion): Use the base type of
the index type to find the type used to compute the length.
gcc/ada/exp_aggr.adb