From 0321dae0b83ad42148d2b340d7a79ccee757c541 Mon Sep 17 00:00:00 2001 From: Ronan Desplanques Date: Thu, 9 Feb 2023 23:00:41 +0100 Subject: [PATCH] ada: Reuse idiomatic procedure in CStand This change replaces a call to Set_Name_Entity_Id with a call to the higher-level Set_Current_Entity. gcc/ada/ * cstand.adb: Use more idiomatic procedure. --- gcc/ada/cstand.adb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/ada/cstand.adb b/gcc/ada/cstand.adb index 3646003b3306..fbd5888b1981 100644 --- a/gcc/ada/cstand.adb +++ b/gcc/ada/cstand.adb @@ -1642,8 +1642,7 @@ package body CStand is for E in Standard_Entity_Type loop if Ekind (Standard_Entity (E)) /= E_Operator then - Set_Name_Entity_Id - (Chars (Standard_Entity (E)), Standard_Entity (E)); + Set_Current_Entity (Standard_Entity (E)); Set_Homonym (Standard_Entity (E), Empty); end if; -- 2.47.2