From: Piotr Trojanek Date: Fri, 8 Oct 2021 12:37:52 +0000 (+0200) Subject: [Ada] Remove redundant guard in expansion of dispatching calls X-Git-Tag: basepoints/gcc-13~3636 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6888031123ed16ccf01dd803207362b4500db624;p=thirdparty%2Fgcc.git [Ada] Remove redundant guard in expansion of dispatching calls gcc/ada/ * exp_ch3.adb (Predefined_Primitive_Bodies): Remove redundant conditions related to interface types. --- diff --git a/gcc/ada/exp_ch3.adb b/gcc/ada/exp_ch3.adb index e7eed282fbe7..e8d4326ab8da 100644 --- a/gcc/ada/exp_ch3.adb +++ b/gcc/ada/exp_ch3.adb @@ -11102,7 +11102,6 @@ package body Exp_Ch3 is -- they may be ancestors of synchronized interface types). if Ada_Version >= Ada_2005 - and then not Is_Interface (Tag_Typ) and then ((Is_Interface (Etype (Tag_Typ)) and then Is_Limited_Record (Etype (Tag_Typ))) @@ -11123,7 +11122,7 @@ package body Exp_Ch3 is Append_To (Res, Make_Disp_Timed_Select_Body (Tag_Typ)); end if; - if not Is_Limited_Type (Tag_Typ) and then not Is_Interface (Tag_Typ) then + if not Is_Limited_Type (Tag_Typ) then -- Body for equality