[Ada] Fix typo in code to get a better error message
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 14 May 2020 20:08:09 +0000 (22:08 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 7 Jul 2020 09:26:59 +0000 (05:26 -0400)
commite082411903f528de5cc48ba206c5f5253861e65d
treebaf80fec7aab01672e1051beaab8e772447d5b89
parent8bda08f130cfc0d210386d484c68daa4e4140313
[Ada] Fix typo in code to get a better error message

gcc/ada/

* sem_ch8.adb (Analyze_Use_Package): Replace low-level,
error-prone Ekind_In tests with high-level Is_Generic_Subprogram
and Is_Subprogram.
gcc/ada/sem_ch8.adb