[Ada] Replace call with a reference to a local constant

gcc/ada/

	* sem_ch4.adb (Try_Object_Operation): Reuse local constant.
This commit is contained in:
Piotr Trojanek
2020-12-31 13:11:00 +01:00
committed by Pierre-Marie de Rodat
parent ef9dd96c92
commit 4e54d69b66
+1 -1
View 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;