public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1889] [Ada] Remove redundant check for empty list
@ 2021-06-29 14:25 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-06-29 14:25 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:afea7b3dc2c85604167debac55cc736689b994ad
commit r12-1889-gafea7b3dc2c85604167debac55cc736689b994ad
Author: Piotr Trojanek <trojanek@adacore.com>
Date: Thu Apr 8 21:19:54 2021 +0200
[Ada] Remove redundant check for empty list
gcc/ada/
* sem_ch3.adb (Analyze_Declarations): Remove explicit check for
missing, because a subsequent call to Is_Empty_List will detect
them anyway.
Diff:
---
gcc/ada/sem_ch3.adb | 1 -
1 file changed, 1 deletion(-)
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb
index 70e1dfdb71d..7dfb5c8df62 100644
--- a/gcc/ada/sem_ch3.adb
+++ b/gcc/ada/sem_ch3.adb
@@ -2758,7 +2758,6 @@ package body Sem_Ch3 is
Resolve_Aspects;
elsif L /= Visible_Declarations (Parent (L))
- or else No (Private_Declarations (Parent (L)))
or else Is_Empty_List (Private_Declarations (Parent (L)))
then
Adjust_Decl;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-29 14:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 14:25 [gcc r12-1889] [Ada] Remove redundant check for empty list Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).