From: Eric Botcazou Date: Thu, 5 Jun 2025 11:14:33 +0000 (+0200) Subject: ada: Remove a couple of redundant calls to Set_Etype X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42f984411bff7633b01e2d98176be8ce968b2130;p=thirdparty%2Fgcc.git ada: Remove a couple of redundant calls to Set_Etype The OK_Convert_To function already sets the Etype of its result. gcc/ada/ChangeLog: * exp_imgv.adb (Expand_Value_Attribute): Do not call Set_Etype on N after rewriting it by means of OK_Convert_To. --- diff --git a/gcc/ada/exp_imgv.adb b/gcc/ada/exp_imgv.adb index 6c2b940736b..3fef6fabe64 100644 --- a/gcc/ada/exp_imgv.adb +++ b/gcc/ada/exp_imgv.adb @@ -1631,7 +1631,6 @@ package body Exp_Imgv is Name => New_Occurrence_Of (RTE (Vid), Loc), Parameter_Associations => Args))); - Set_Etype (N, Btyp); Analyze_And_Resolve (N, Btyp); return; @@ -1675,7 +1674,6 @@ package body Exp_Imgv is Name => New_Occurrence_Of (RTE (Vid), Loc), Parameter_Associations => Args))); - Set_Etype (N, Btyp); Analyze_And_Resolve (N, Btyp); return; end if;