[Ada] Fix crash on invalid `pragma Profile`
authorGhjuvan Lacambre <lacambre@adacore.com>
Fri, 9 Oct 2020 14:36:45 +0000 (16:36 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 25 Nov 2020 13:22:24 +0000 (08:22 -0500)
commit193040a071b1170e5e22b7371d81b880f69aeae1
treec7fb76f77980cf6bbb3a1df0c52335037c08e6c5
parent868268a8ecd1961870513ad2c49df7e1fecd92b8
[Ada] Fix crash on invalid `pragma Profile`

gcc/ada/

* sem_prag.adb (Analyze_Pragma): Emit error on wrong argument
nkind.
gcc/ada/sem_prag.adb