public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-1616] [Ada] Remove excessive guard in detection of access-to-variable objects
Date: Tue, 12 Jul 2022 12:24:50 +0000 (GMT)	[thread overview]
Message-ID: <20220712122450.828563858C50@sourceware.org> (raw)

https://gcc.gnu.org/g:474946c61a5dd5335ced09d52a95d1e3d90d1455

commit r13-1616-g474946c61a5dd5335ced09d52a95d1e3d90d1455
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Mon Aug 30 12:03:52 2021 +0200

    [Ada] Remove excessive guard in detection of access-to-variable objects
    
    It is safe to call Is_Access_Variable without calling
    Is_Access_Object_Type before. Compiler cleanup only; semantics is
    unaffected.
    
    gcc/ada/
    
            * sem_util.adb (Is_Variable): Remove excessive guard.

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

diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index 7b7566d96c7..9cff0f72998 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -21896,7 +21896,6 @@ package body Sem_Util is
               or else (K = E_Component
                         and then not In_Protected_Function (E))
               or else (Present (Etype (E))
-                        and then Is_Access_Object_Type (Etype (E))
                         and then Is_Access_Variable (Etype (E))
                         and then Is_Dereferenced (N))
               or else K = E_Out_Parameter


                 reply	other threads:[~2022-07-12 12:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220712122450.828563858C50@sourceware.org \
    --to=pmderodat@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).