[Ada] Fix small glitch in Expand_N_Full_Type_Declaration
commit42fe7c9a809198b50070eb9033ba2be1447519b9
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 23 Mar 2022 22:47:06 +0000 (23 23:47 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 17 May 2022 08:25:46 +0000 (17 08:25 +0000)
tree2e2254c99520a123a334b84f78a71119815c15dd
parent80d1067508d7cdfa765c93df1737015c07c7f11d
[Ada] Fix small glitch in Expand_N_Full_Type_Declaration

The original node is not guaranteed to also be an
N_Full_Type_Declaration, so the code needs to look into the node itself.

gcc/ada/

* exp_ch3.adb (Expand_N_Full_Type_Declaration): Look into N.
gcc/ada/exp_ch3.adb