[gcc r16-1389] ada: Remove redundant guard against attribute with no expressions
Marc Poulhies
dkm@gcc.gnu.org
Tue Jun 10 07:36:41 GMT 2025
https://gcc.gnu.org/g:5dc946f78e6d0ba73fd33990b3a353f113ecdd64
commit r16-1389-g5dc946f78e6d0ba73fd33990b3a353f113ecdd64
Author: Piotr Trojanek <trojanek@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
More information about the Gcc-cvs
mailing list