]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Tweak container aggregate expansion code
authorRonan Desplanques <desplanques@adacore.com>
Mon, 15 Jul 2024 08:22:29 +0000 (10:22 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 2 Aug 2024 07:08:08 +0000 (09:08 +0200)
commit54acd24d5f82766e7ad43a41519b00369ae46863
tree8ea2446f497342a180cc289f93df3278b1a4f295
parent425eceb75d09f3fa228c3e26c5136ce0d688fbcf
ada: Tweak container aggregate expansion code

This patch makes a minor modification to Expand_Container_Aggregate
in order to silence a GNAT SAS false positive.

gcc/ada/

* exp_aggr.adb (Expand_Container_Aggregate): Remove variables.
(To_Int): New function.
(Add_Range_Size): Use newly introduced function.
gcc/ada/exp_aggr.adb