public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4296] [Ada] Simplify detection of delayed aggregates
@ 2021-10-11 13:39 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-10-11 13:39 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:90084d74007367a44ea8de99af80ea20b50bcb79

commit r12-4296-g90084d74007367a44ea8de99af80ea20b50bcb79
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Wed Sep 29 12:18:36 2021 +0200

    [Ada] Simplify detection of delayed aggregates
    
    gcc/ada/
    
            * exp_aggr.adb (Is_Delayed_Aggregate): Simplify.

Diff:
---
 gcc/ada/exp_aggr.adb | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gcc/ada/exp_aggr.adb b/gcc/ada/exp_aggr.adb
index 187bb5f47b6..572c6c534e5 100644
--- a/gcc/ada/exp_aggr.adb
+++ b/gcc/ada/exp_aggr.adb
@@ -8978,11 +8978,8 @@ package body Exp_Aggr is
          Kind := Nkind (Node);
       end if;
 
-      if Kind not in N_Aggregate | N_Extension_Aggregate then
-         return False;
-      else
-         return Expansion_Delayed (Node);
-      end if;
+      return Kind in N_Aggregate | N_Extension_Aggregate
+        and then Expansion_Delayed (Node);
    end Is_Delayed_Aggregate;
 
    --------------------------------


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-11 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-11 13:39 [gcc r12-4296] [Ada] Simplify detection of delayed aggregates 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).