diff options
author | Ronan Desplanques <desplanques@adacore.com> | 2023-02-09 23:00:41 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-22 10:46:13 +0200 |
commit | 0321dae0b83ad42148d2b340d7a79ccee757c541 (patch) | |
tree | 238236163166d33115b2635393892086089d106a | |
parent | 014f7f3a7075be6e6d02186f4aad53200ebaafa8 (diff) | |
download | gcc-0321dae0b83ad42148d2b340d7a79ccee757c541.zip gcc-0321dae0b83ad42148d2b340d7a79ccee757c541.tar.gz gcc-0321dae0b83ad42148d2b340d7a79ccee757c541.tar.bz2 |
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.
-rw-r--r-- | gcc/ada/cstand.adb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/cstand.adb b/gcc/ada/cstand.adb index 3646003..fbd5888 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; |