]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Remove redundant guard against attribute with no expressions
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 26 Mar 2025 17:42:10 +0000 (18:42 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 10 Jun 2025 07:32:10 +0000 (09:32 +0200)
commit5dc946f78e6d0ba73fd33990b3a353f113ecdd64
tree9173faeb66af13045e4642ddebf1b722a4091105
parent6c0f367bac1af82d93e9f21f24b18ea2bfdc067a
ada: Remove redundant guard against attribute with no expressions

We intentionally allow First to work on No_List, so there is no need to guard
against a No_List. Code cleanup; semantics is unaffected.

gcc/ada/ChangeLog:

* sem_attr.adb (Resolve_Attribute): Remove redundant guard.
gcc/ada/sem_attr.adb