diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2024-04-17 14:58:24 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-06-21 10:34:18 +0200 |
commit | 39f35956587fe09fbdb87ebd203df6e3674f7b59 (patch) | |
tree | d91bf92dd6468854586a227cc24c3d90e29cc053 /gcc/ada | |
parent | 244d02bb288a07f3252fc9ed38675b93a9a91225 (diff) | |
download | gcc-39f35956587fe09fbdb87ebd203df6e3674f7b59.zip gcc-39f35956587fe09fbdb87ebd203df6e3674f7b59.tar.gz gcc-39f35956587fe09fbdb87ebd203df6e3674f7b59.tar.bz2 |
ada: Fix gnatcheck violation reported after a recent cleanup
Code cleanup; semantics is unaffected.
gcc/ada/
* sem_ch3.adb (Add_Interface_Tag_Components): Simplify with No.
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/sem_ch3.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index eebaedc..a1112d7 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -1618,7 +1618,7 @@ package body Sem_Ch3 is Last_Tag := Empty; - if not Present (Component_List (Ext)) then + if No (Component_List (Ext)) then Set_Null_Present (Ext, False); L := New_List; Set_Component_List (Ext, |