[Ada] Wrong use of Scope_Depth_Value
authorArnaud Charlet <charlet@adacore.com>
Tue, 23 Jun 2020 16:14:03 +0000 (12:14 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 15 Oct 2020 09:39:14 +0000 (05:39 -0400)
commit7e3f6147a7492b774194669f3f68b979fd847811
tree33b0894badf3f560251a87e747b9ab913e01ac6d
parentcba9c0267ac33cc1e5b14c71d2fc75ca9609cf91
[Ada] Wrong use of Scope_Depth_Value

gcc/ada/

* einfo.ads, einfo.adb (Scope_Depth_Value,
Set_Scope_Depth_Value): Add assertions on valid nodes and update
documentation accordingly.
(Write_Field22_Name): Sync with change in Scope_Depth_Value.
* sem_ch8.adb (Find_Direct_Name): Fix call to Scope_Depth_Value.
gcc/ada/einfo.adb
gcc/ada/einfo.ads
gcc/ada/sem_ch8.adb