]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Get name from entity if that's what's passed to Subprogram_Name
authorRichard Kenner <kenner@adacore.com>
Sun, 22 Jan 2023 17:38:41 +0000 (12:38 -0500)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 16 May 2023 08:30:57 +0000 (10:30 +0200)
gcc/ada/

* sem_util.adb (Subprogram_Name): If what's passed is already an
entity, use that for the name.

gcc/ada/sem_util.adb

index eb0d08a1851718682045ce10c701f6f08df33fb4..8bce0229867413d3825a6364db80b307c7049e95 100644 (file)
@@ -28095,6 +28095,9 @@ package body Sem_Util is
                Ent := Defining_Identifier (Ent);
                exit;
 
+            when N_Entity =>
+               exit;
+
             when others =>
                null;
          end case;