[Ada] Fix oversight in implementation of unnesting
commit46ba7ae3c6eea45cc03de5fb00c8084cdc760d64
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 31 Aug 2022 12:39:08 +0000 (31 14:39 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 12 Sep 2022 08:16:51 +0000 (12 10:16 +0200)
tree4c9ebff1326a5114cf327d479c6b42fc6c458c63
parent9bde1fc68f4ed9699814342987adf22fcb91eaee
[Ada] Fix oversight in implementation of unnesting

The pass would traverse generic subprogram bodies, which are not expanded,
thus stumbling on unexpected nodes.

gcc/ada/

* exp_unst.adb (Unnest_Subprograms.Search_Subprograms): Skip the
subprogram bodies that are not to be unnested.
gcc/ada/exp_unst.adb