aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/exp_atag.adb
diff options
context:
space:
mode:
authorGhjuvan Lacambre <lacambre@adacore.com>2022-09-17 19:35:48 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-11-04 14:47:26 +0100
commit7d0d27d90dbd8ecab7f8852a807d86a84e31a61c (patch)
tree800a5e631c92c62e70cf51c453a453ebfc5b89c3 /gcc/ada/exp_atag.adb
parent587af00955c02040f1c552f7b0381f4ec4f1c3f9 (diff)
downloadgcc-7d0d27d90dbd8ecab7f8852a807d86a84e31a61c.zip
gcc-7d0d27d90dbd8ecab7f8852a807d86a84e31a61c.tar.gz
gcc-7d0d27d90dbd8ecab7f8852a807d86a84e31a61c.tar.bz2
ada: Refactor: replace uses of `not Present(X)` with `No (X)`
`No (X)` is essentially `not Present (X)`, there's no reason for not using this shorter form. gcc/ada/ * checks.adb, exp_atag.adb, exp_attr.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_dbug.adb, exp_disp.adb, exp_unst.adb, exp_util.adb, freeze.adb, layout.adb, pprint.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_case.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_util.adb, sem_warn.adb: Replace uses of `not Present (X)` with `No (X)`.
Diffstat (limited to 'gcc/ada/exp_atag.adb')
-rw-r--r--gcc/ada/exp_atag.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/exp_atag.adb b/gcc/ada/exp_atag.adb
index 7871363..074ab4e 100644
--- a/gcc/ada/exp_atag.adb
+++ b/gcc/ada/exp_atag.adb
@@ -312,7 +312,7 @@ package body Exp_Atag is
if not Is_Predefined_Dispatching_Operation (Prim)
and then not Is_Predefined_Dispatching_Operation (E)
- and then not Present (Interface_Alias (Prim))
+ and then No (Interface_Alias (Prim))
and then not Is_Abstract_Subprogram (E)
and then not Is_Eliminated (E)
and then Prim_Pos <= CPP_Nb_Prims