ada: Simplify copying of node lists
commitc4399ee62946eafbded4334478678d6f3d68787e
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 7 Mar 2023 18:52:40 +0000 (7 19:52 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 25 May 2023 07:44:17 +0000 (25 09:44 +0200)
tree81d9f348b2ee66c4cff59af8f54e50849665bb5f
parent82a205ebf656aa349f46c541a2a22303ca5b92fc
ada: Simplify copying of node lists

When creating a copy of a node list we called Copy_Entity for entities
and Copy_Separate_Tree for other nodes. This was unnecessary, because
the Copy_Separate_Tree when called on entities will just do Copy_Entity.

Code cleanup; semantics is unaffected.

gcc/ada/

* atree.adb (Copy_List): Call Copy_Separate_Tree for both entities and
other nodes.
gcc/ada/atree.adb