aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-10-07 12:55:14 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-11-04 14:47:28 +0100
commit73d04a073b7288fcf6fc2e1f25d8b1f3a2c6fb81 (patch)
tree1eefcd220b4889ce87e9f91271ed035476c32191 /gcc/expr.cc
parent50bd9f4e6fc7ac84b5d0f29b76dff1f82381ee38 (diff)
downloadgcc-73d04a073b7288fcf6fc2e1f25d8b1f3a2c6fb81.zip
gcc-73d04a073b7288fcf6fc2e1f25d8b1f3a2c6fb81.tar.gz
gcc-73d04a073b7288fcf6fc2e1f25d8b1f3a2c6fb81.tar.bz2
ada: Fix repeated killing of private entity values
When killing known values of 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_util.adb (Kill_Current_Values): Only iterate from First_Entity through Next_Entity.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions