[Ada] Don't expect enumeration literals to be renamings
gcc/ada/ * lib-xref.adb (Get_Through_Renamings): Exit loop when an enumeration literal is found.
This commit is contained in:
parent
c652a33260
commit
f977a79272
1 changed files with 3 additions and 1 deletions
|
@ -481,7 +481,9 @@ package body Lib.Xref is
|
|||
-- e.g. function call, slicing of a function call,
|
||||
-- pointer dereference, etc.
|
||||
|
||||
if No (Obj) then
|
||||
if No (Obj)
|
||||
or else Ekind (Obj) = E_Enumeration_Literal
|
||||
then
|
||||
return Empty;
|
||||
end if;
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue