public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10119] Remove superfluous call to UI_Is_In_Int_Range
@ 2021-09-14  8:24 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2021-09-14  8:24 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2290a4047010bf1642035f4d88e8baf6a7604aee

commit r10-10119-g2290a4047010bf1642035f4d88e8baf6a7604aee
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 abb456216c7..3dcdbb88703 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -5759,8 +5759,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);


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

only message in thread, other threads:[~2021-09-14  8:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14  8:24 [gcc r10-10119] Remove superfluous call to UI_Is_In_Int_Range Eric Botcazou

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).