[Ada] Simplify detection of local types
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 6 Apr 2021 11:10:01 +0000 (13:10 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 29 Jun 2021 14:23:47 +0000 (14:23 +0000)
commit32638d4975f2768b25732f87b4708360117ef0fd
tree4216b51e8b778cc3a4083cf510d36dfa80693b1f
parent4c07e6d67921bb0793890550094d464153e479eb
[Ada] Simplify detection of local types

gcc/ada/

* sem_ch3.adb (Is_Local_Type): Simplify by reusing Scope_Within.
gcc/ada/sem_ch3.adb