aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/debug.adb
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2023-02-01 13:24:43 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-05-22 10:44:09 +0200
commitef7a38762086a58c89f86846d9d779d4eebe900d (patch)
tree57d1cbedf397f209b9c14856e7b8e87eb64d8e4b /gcc/ada/debug.adb
parent03fc0621f5e7a7c577828a323fc953eb99d07093 (diff)
downloadgcc-ef7a38762086a58c89f86846d9d779d4eebe900d.zip
gcc-ef7a38762086a58c89f86846d9d779d4eebe900d.tar.gz
gcc-ef7a38762086a58c89f86846d9d779d4eebe900d.tar.bz2
ada: Remove redundant protection against empty lists
Calls to List_Length on No_List intentionally return 0 (and likewise call to First on No_List intentionally return Empty), so explicit guards against No_List are unnecessary. Code cleanup; semantics is unaffected. gcc/ada/ * exp_aggr.adb (Aggregate_Size): Remove redundant calls to Present. * exp_ch5.adb (Expand_N_If_Statement): Likewise. * sem_prag.adb (Analyze_Pragma): Likewise. * sem_warn.adb (Find_Var): Likewise.
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions