public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3512] Remove superfluous call to UI_Is_In_Int_Range
@ 2021-09-14 8:23 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2021-09-14 8:23 UTC (permalink / raw)
To: gcc-cvs
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-14 8:23 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:23 [gcc r12-3512] 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).