]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Replace call with a reference to a local constant
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 31 Dec 2020 12:11:00 +0000 (13:11 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 3 May 2021 09:28:25 +0000 (05:28 -0400)
gcc/ada/

* sem_ch4.adb (Try_Object_Operation): Reuse local constant.

gcc/ada/sem_ch4.adb

index 77f2812ba38e20c4a81694fb2d85c9f79fefa323..a96ce9ff8f08aea304ea2b767b70bb856f17c8e8 100644 (file)
@@ -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;