[gcc r10-10119] Remove superfluous call to UI_Is_In_Int_Range
Eric Botcazou
ebotcazou@gcc.gnu.org
Tue Sep 14 08:24:41 GMT 2021
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);
More information about the Gcc-cvs
mailing list