]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix non-idiomatic construct
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 15 Dec 2023 18:07:44 +0000 (19:07 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 6 May 2024 09:11:25 +0000 (11:11 +0200)
gcc/ada/

* exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Use No instead of
not Present.

gcc/ada/exp_ch3.adb

index 7a137dda3f761eb66a055f47e25b3e72b50811f5..09551b221546a2fd3d8139b806d105ef0c54664c 100644 (file)
@@ -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;