aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.ads
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2023-03-21 10:29:39 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-05-26 09:29:17 +0200
commite3fe66ea55761315879985fe9b03989e9033e734 (patch)
tree5e3040bfc35fc052715ae324b6cbcc2654e7f592 /gcc/ada/sem_util.ads
parent10bb8c4ea8a1b6c7056d3a36a69702588412b0c5 (diff)
downloadgcc-e3fe66ea55761315879985fe9b03989e9033e734.zip
gcc-e3fe66ea55761315879985fe9b03989e9033e734.tar.gz
gcc-e3fe66ea55761315879985fe9b03989e9033e734.tar.bz2
ada: Remove redundant protection against empty lists
Calls to Length on No_List intentionally return 0, so explicit guards against No_List are unnecessary. Code cleanup; semantics is unaffected. gcc/ada/ * sem_ch13.adb (Check_Component_List): Local variable Compl is now a constant; a nested block is no longer needed.
Diffstat (limited to 'gcc/ada/sem_util.ads')
0 files changed, 0 insertions, 0 deletions