From: Eric Botcazou Date: Fri, 15 Dec 2023 18:07:44 +0000 (+0100) Subject: ada: Fix non-idiomatic construct X-Git-Tag: basepoints/gcc-16~9376 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4002a72aff546e20b6efc75147bebdf893891ea6;p=thirdparty%2Fgcc.git ada: Fix non-idiomatic construct gcc/ada/ * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Use No instead of not Present. --- diff --git a/gcc/ada/exp_ch3.adb b/gcc/ada/exp_ch3.adb index 7a137dda3f7..09551b22154 100644 --- a/gcc/ada/exp_ch3.adb +++ b/gcc/ada/exp_ch3.adb @@ -5021,7 +5021,7 @@ package body Exp_Ch3 is -- Create the body of TSS primitive Finalize_Address. This automatically -- sets the TSS entry for the class-wide type. - if not Present (Finalize_Address (Typ)) then + if No (Finalize_Address (Typ)) then Make_Finalize_Address_Body (Typ); end if; end Expand_Freeze_Class_Wide_Type;