From: Eric Botcazou Date: Mon, 21 Jun 2021 14:13:25 +0000 (+0200) Subject: [Ada] Remove inappropriate test from Is_By_Reference_Type X-Git-Tag: basepoints/gcc-13~4628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d41be878c91e2e72cbd8bd68f793abc2c4b70563;p=thirdparty%2Fgcc.git [Ada] Remove inappropriate test from Is_By_Reference_Type gcc/ada/ * sem_aux.adb (Is_By_Reference_Type): Do not test Error_Posted. --- diff --git a/gcc/ada/sem_aux.adb b/gcc/ada/sem_aux.adb index ea3b59c0a1c4..bce7c387ae3f 100644 --- a/gcc/ada/sem_aux.adb +++ b/gcc/ada/sem_aux.adb @@ -846,10 +846,7 @@ package body Sem_Aux is Btype : constant Entity_Id := Base_Type (Ent); begin - if Error_Posted (Ent) or else Error_Posted (Btype) then - return False; - - elsif Is_Private_Type (Btype) then + if Is_Private_Type (Btype) then declare Utyp : constant Entity_Id := Underlying_Type (Btype); begin