https://gcc.gnu.org/g:5dc946f78e6d0ba73fd33990b3a353f113ecdd64

commit r16-1389-g5dc946f78e6d0ba73fd33990b3a353f113ecdd64
Author: Piotr Trojanek <troja...@adacore.com>
Date:   Wed Mar 26 18:42:10 2025 +0100

    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.

Diff:
---
 gcc/ada/sem_attr.adb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb
index d4034d28da60..4f5047f7b974 100644
--- a/gcc/ada/sem_attr.adb
+++ b/gcc/ada/sem_attr.adb
@@ -13014,7 +13014,6 @@ package body Sem_Attr is
             --  their Entity attribute to reference their discriminal.
 
             if Expander_Active
-              and then Present (Expressions (N))
               and then Attr_Id /= Attribute_Make
             then
                declare

Reply via email to