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.
This commit is contained in:
Eric Botcazou 2021-09-14 10:21:20 +02:00
parent f1f5b1fbbb
commit 45d32da2bc

View File

@ -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);