]> 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)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 6 Jan 2025 09:14:49 +0000 (10:14 +0100)
commitf345ae3e6b2958677abd5a2f3aa447e0494e0fc3
tree120683ccfcbaaabe3263f0ae1b308f96468ebe50
parentad8242d616da64a03680a1d304910cdb0f3ceb18
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