]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Small cleanup in analysis of package instantiation
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 7 Nov 2025 11:32:11 +0000 (12:32 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 18 Nov 2025 15:05:10 +0000 (16:05 +0100)
commit54afa29ebfaa0fec0de85b1976fa881343762653
tree574f47276c298a4e76ff3466799b930ed418b99d
parent6ec436c235a9a185740b9a332710af5a3d9132b5
ada: Small cleanup in analysis of package instantiation

This cleans up some ancient code computing whether the instantiation of the
body is needed and moves remnants to the Needs_Body_Instantiated predicate.

gcc/ada/ChangeLog:

* sem_ch12.adb (Analyze_Package_Instantiation): Streamline and move
code clearing Needs_Body after it is computed to ...
(Needs_Body_Instantiated): ...here.  Chain if-then constructs.
gcc/ada/sem_ch12.adb