aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2023-03-07 21:00:46 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-05-25 09:44:18 +0200
commitd50e1383be73ef9cdc9f0d0813fa0e1208657789 (patch)
tree52708925f9c73b017258edfe9e95716cc0190190 /gcc
parentc4399ee62946eafbded4334478678d6f3d68787e (diff)
downloadgcc-d50e1383be73ef9cdc9f0d0813fa0e1208657789.zip
gcc-d50e1383be73ef9cdc9f0d0813fa0e1208657789.tar.gz
gcc-d50e1383be73ef9cdc9f0d0813fa0e1208657789.tar.bz2
ada: Clean up copying of node trees
Before calling routine In_Entity_Map we checked if the entity map is present; inside this routine we checked this again. Code cleanup; semantics is unaffected. gcc/ada/ * sem_util.adb (Update_New_Entities): Remove redundant check for entity map being present.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/sem_util.adb4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index bfe1b9f..8b536ec 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -23858,9 +23858,7 @@ package body Sem_Util is
-- ??? Is there a better way of distinguishing those?
while Present (Old_Id) and then Present (New_Id) loop
- if not (Present (Entity_Map)
- and then In_Entity_Map (Old_Id, Entity_Map))
- then
+ if not In_Entity_Map (Old_Id, Entity_Map) then
Update_Semantic_Fields (New_Id);
end if;