From: Eric Botcazou Date: Tue, 14 Sep 2021 08:21:20 +0000 (+0200) Subject: Remove superfluous call to UI_Is_In_Int_Range X-Git-Tag: basepoints/gcc-13~4801 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45d32da2bc0f62f196ec311dddb89563555b1a2a;p=thirdparty%2Fgcc.git 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 --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 846d20a8be75..04179df8940d 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);