]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Simplify detection of controlling formals
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 7 Oct 2022 19:58:58 +0000 (21:58 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 4 Nov 2022 13:47:28 +0000 (14:47 +0100)
commit50bd9f4e6fc7ac84b5d0f29b76dff1f82381ee38
tree998d8ae370d27ce4647cdf003100bb08504da5d0
parent64b10736a16c901701e4c97ce71504791ba9bbea
ada: Simplify detection of controlling formals

When detecting controlling formals we are only interested in formal
parameters and not in other entities.

gcc/ada/

* sem_ch6.adb (Controlling_Formal): Iterate with First/Next_Formal
and not with First/Next_Entity.
gcc/ada/sem_ch6.adb