aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/rtinit.c
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2021-05-11 13:01:35 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2021-07-06 14:46:57 +0000
commitddbe7338f1ea50db4d39a925c6c530052ed288a4 (patch)
tree67e67046e8608ff7214daf53b3e608e8835b5887 /gcc/ada/rtinit.c
parentca290f108a62e041ea3ca7c981d8225f34cefdbd (diff)
downloadgcc-ddbe7338f1ea50db4d39a925c6c530052ed288a4.zip
gcc-ddbe7338f1ea50db4d39a925c6c530052ed288a4.tar.gz
gcc-ddbe7338f1ea50db4d39a925c6c530052ed288a4.tar.bz2
[Ada] Simplify returning from Enclosing_Comp_Unit_Node
gcc/ada/ * sem_util.adb (Enclosing_Comp_Unit_Node): When the loop exits the Current_Node is either an N_Compilation_Unit node or Empty, so simply return it without redundant checks.
Diffstat (limited to 'gcc/ada/rtinit.c')
0 files changed, 0 insertions, 0 deletions