]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Remove creation of some unused itypes
authorRonan Desplanques <desplanques@adacore.com>
Fri, 28 Mar 2025 11:37:50 +0000 (12:37 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 12 Jun 2025 08:37:50 +0000 (10:37 +0200)
commitdf186850f2868f6e78509f25d01bdbf2c3f342fe
tree92557ba417e121e339449b75cf86fac13561f57c
parenta9cc2a22e9def732c5cdb40aa86b427f401786c7
ada: Remove creation of some unused itypes

Before this patch, Constrain_Index always started by creating an itype
but then sometimes not using it for anything. This patch makes it so an
itype is only created when needed.

gcc/ada/ChangeLog:

* sem_ch3.adb (Constrain_Index): Avoid unused itypes.
gcc/ada/sem_ch3.adb