]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Remove superfluous statements
authorRonan Desplanques <desplanques@adacore.com>
Mon, 8 Sep 2025 07:57:17 +0000 (09:57 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 19 Sep 2025 09:26:10 +0000 (11:26 +0200)
commitf8e59edf550a6ab60874283aebca3058e274f698
treef3c18c45331425eef42d10c455cc963e987fb2cc
parentd832626b1a076eac6232a5b74deee98dd83002f4
ada: Remove superfluous statements

This patch removes two occurrences of the following pattern:

    Analyze_Component_Declaration (N);
    Mutate_Ekind (Defining_Identifier (N), E_Component);

The second statement here has absolutely no effect, so its presence can
be confusing to the reader.

gcc/ada/ChangeLog:

* sem_ch3.adb (Add_Tag): Remove superfluous statements.
gcc/ada/sem_ch3.adb