From: Piotr Trojanek Date: Thu, 31 Dec 2020 12:11:00 +0000 (+0100) Subject: [Ada] Replace call with a reference to a local constant X-Git-Tag: basepoints/gcc-13~7947 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e54d69b665d434bc3d74c0f8ebb2993a5539ffd;p=thirdparty%2Fgcc.git [Ada] Replace call with a reference to a local constant gcc/ada/ * sem_ch4.adb (Try_Object_Operation): Reuse local constant. --- diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb index 77f2812ba38e..a96ce9ff8f08 100644 --- a/gcc/ada/sem_ch4.adb +++ b/gcc/ada/sem_ch4.adb @@ -10223,7 +10223,7 @@ package body Sem_Ch4 is if Serious_Errors_Detected = 0 then Error_Msg_NE ("cannot resolve prefixed call to primitive operation of&", - N, Entity (Prefix (N))); + N, Entity (Obj)); end if; end if;