aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-09-01 10:19:09 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-11-04 14:47:29 +0100
commit5f780a2d02d0b7c92a75ce1f749ffcc15b90fa32 (patch)
tree4f343220baceab180386719954b7f3fbf0cd5e89 /gcc/expr.cc
parentcb3c260460073bed267fae3ee970947a24858211 (diff)
downloadgcc-5f780a2d02d0b7c92a75ce1f749ffcc15b90fa32.zip
gcc-5f780a2d02d0b7c92a75ce1f749ffcc15b90fa32.tar.gz
gcc-5f780a2d02d0b7c92a75ce1f749ffcc15b90fa32.tar.bz2
ada: Avoid repeated iteration over private protected components
The First_Entity/Next_Entity chain includes private entities, so there it no need to iterate starting both from First_Entity and First_Private_Entity. Code cleanup related to improved detection of references to uninitialized objects; behavior is unaffected. gcc/ada/ * sem_util.adb (Check_Components): Iterate using First/Next_Component_Or_Discriminant. (Has_Preelaborable_Initialization): Avoid repeated iteration with calls to Check_Components with First_Entity and First_Private_Entity. (Is_Independent_Object_Entity): Tune indentation.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions