diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2022-08-23 17:16:44 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-11-04 14:47:29 +0100 |
commit | cb3c260460073bed267fae3ee970947a24858211 (patch) | |
tree | 1bd059e4a3726187bbb9c3d18cf9aca421dcadd1 /libcpp | |
parent | 265341dc527754b8b3d390e870b43f00142933f7 (diff) | |
download | gcc-cb3c260460073bed267fae3ee970947a24858211.zip gcc-cb3c260460073bed267fae3ee970947a24858211.tar.gz gcc-cb3c260460073bed267fae3ee970947a24858211.tar.bz2 |
ada: Cleanup clearing flags on package variables
When killing flags on assignable entities we iterated from First_Entity
and then again from First_Private_Entity. This second iteration was
unnecessary, because the entity chain that starts with First_Entity
contains all entities, including the private ones.
This is just a performance improvement; the behavior is unchanged.
gcc/ada/
* sem_ch7.adb (Clear_Constants): Only iterate from First_Entity
through Next_Entity; only examine variables because packages have
no assignable formal parameters.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions