ada: Simplify test for propagation of attributes to subtypes
commit9fbf129bade8014d1fd7ab8ecd255df7e12570f0
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 29 Mar 2024 08:08:08 +0000 (29 09:08 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 21 May 2024 07:27:57 +0000 (21 09:27 +0200)
treead3f3ff130bc1b67f12909cc3f57ded3c5e1f158
parentbf69349b8d974ff2a2518976e69724d21aa1f423
ada: Simplify test for propagation of attributes to subtypes

This changes the test to use the Is_Base_Type predicate and also removes the
superfluous call to Base_Type before First_Subtype.  No functional changes.

gcc/ada/

* gcc-interface/decl.cc (gnat_to_gnu_entity): Use the Is_Base_Type
predicate and remove superfluous calls to Base_Type.
gcc/ada/gcc-interface/decl.cc