diff mbox series

[COMMITTED] ada: Fix non-idiomatic construct

Message ID 20240506091749.1584947-1-poulhies@adacore.com
State New
Headers show
Series [COMMITTED] ada: Fix non-idiomatic construct | expand

Commit Message

Marc Poulhiès May 6, 2024, 9:17 a.m. UTC
From: Eric Botcazou <ebotcazou@adacore.com>

gcc/ada/

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

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/exp_ch3.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;