aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch3.adb
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2023-10-13 13:28:00 +0200
committerMarc Poulhiès <poulhies@adacore.com>2023-11-07 10:15:03 +0100
commit598409d3ef4f39b2c881da58f911bc3049d7f98b (patch)
tree1dbbe387d1a7d3ceeedb947d9eb8def750c4adce /gcc/ada/sem_ch3.adb
parentafb52e6e41383d778c10ea086366980004ed5d6c (diff)
downloadgcc-598409d3ef4f39b2c881da58f911bc3049d7f98b.zip
gcc-598409d3ef4f39b2c881da58f911bc3049d7f98b.tar.gz
gcc-598409d3ef4f39b2c881da58f911bc3049d7f98b.tar.bz2
ada: Cleanup "not Present" on List_Id
gcc/ada/ * exp_ch6.adb, exp_disp.adb, sem_ch13.adb, sem_ch3.adb: Fix newly detected violations.
Diffstat (limited to 'gcc/ada/sem_ch3.adb')
-rw-r--r--gcc/ada/sem_ch3.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb
index c1113e4..8583ac0 100644
--- a/gcc/ada/sem_ch3.adb
+++ b/gcc/ada/sem_ch3.adb
@@ -7394,7 +7394,7 @@ package body Sem_Ch3 is
Set_Is_Constrained
(Derived_Type,
(Is_Constrained (Parent_Type) or else Constraint_Present)
- and then not Present (Discriminant_Specifications (N)));
+ and then No (Discriminant_Specifications (N)));
if Constraint_Present then
if not Has_Discriminants (Parent_Type) then