public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Eric Botcazou <ebotcazou@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-3512] Remove superfluous call to UI_Is_In_Int_Range
Date: Tue, 14 Sep 2021 08:23:32 +0000 (GMT)	[thread overview]
Message-ID: <20210914082332.C62E03858402@sourceware.org> (raw)

https://gcc.gnu.org/g:45d32da2bc0f62f196ec311dddb89563555b1a2a

commit r12-3512-g45d32da2bc0f62f196ec311dddb89563555b1a2a
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Tue Sep 14 10:21:20 2021 +0200

    Remove superfluous call to UI_Is_In_Int_Range
    
    gcc/ada/
            * gcc-interface/utils.c (can_materialize_object_renaming_p): Do not
            call UI_Is_In_Int_Range on the result of Normalized_First_Bit.

Diff:
---
 gcc/ada/gcc-interface/utils.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 846d20a8be7..04179df8940 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -5858,8 +5858,7 @@ can_materialize_object_renaming_p (Node_Id expr)
 
 	    const Uint bitpos
 	      = Normalized_First_Bit (Entity (Selector_Name (expr)));
-	    if (!UI_Is_In_Int_Range (bitpos)
-		|| (bitpos != UI_No_Uint && bitpos != UI_From_Int (0)))
+	    if (bitpos != UI_No_Uint && bitpos != Uint_0)
 	      return false;
 
 	    expr = Prefix (expr);


                 reply	other threads:[~2021-09-14  8:23 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=20210914082332.C62E03858402@sourceware.org \
    --to=ebotcazou@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).