diff options
Diffstat (limited to 'gcc/ada/sem_type.adb')
-rw-r--r-- | gcc/ada/sem_type.adb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/sem_type.adb b/gcc/ada/sem_type.adb index 44f6960c0c2..ed6c25206c9 100644 --- a/gcc/ada/sem_type.adb +++ b/gcc/ada/sem_type.adb @@ -480,8 +480,7 @@ package body Sem_Type is then Add_Entry (Entity (N), Etype (N)); - elsif (Nkind (N) = N_Function_Call - or else Nkind (N) = N_Procedure_Call_Statement) + elsif Nkind_In (N, N_Function_Call, N_Procedure_Call_Statement) and then Is_Entity_Name (Name (N)) then Add_Entry (Entity (Name (N)), Etype (N)); |