Skip to content

Commit

Permalink
ada: Reuse idiomatic procedure in CStand
Browse files Browse the repository at this point in the history
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.

Tested on x86_64-pc-linux-gnu, committed on master.
  • Loading branch information
ronan-d authored and ouuleilei-bot committed May 22, 2023
1 parent c2d62cd commit 2b4d74f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gcc/ada/cstand.adb
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2b4d74f

Please sign in to comment.