public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1625] [Ada] Reuse First_Actual in Address_Value
@ 2021-06-18  8:38 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-06-18  8:38 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d94a2f5f1fcd1d864d67244157d8b29fbffa14a5

commit r12-1625-gd94a2f5f1fcd1d864d67244157d8b29fbffa14a5
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Wed Mar 17 17:21:48 2021 +0100

    [Ada] Reuse First_Actual in Address_Value
    
    gcc/ada/
    
            * sem_util.adb (Address_Value): Simplify.

Diff:
---
 gcc/ada/sem_util.adb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index a66a024105d..9849071fe0d 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -1007,11 +1007,7 @@ package body Sem_Util is
            and then Is_Entity_Name (Name (Expr))
            and then Is_RTE (Entity (Name (Expr)), RE_To_Address)
          then
-            Expr := First (Parameter_Associations (Expr));
-
-            if Nkind (Expr) = N_Parameter_Association then
-               Expr := Explicit_Actual_Parameter (Expr);
-            end if;
+            Expr := First_Actual (Expr);
 
          --  We finally have the real expression


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

only message in thread, other threads:[~2021-06-18  8:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18  8:38 [gcc r12-1625] [Ada] Reuse First_Actual in Address_Value 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).