]> gcc.gnu.org Git - gcc.git/commitdiff
Remove superfluous call to UI_Is_In_Int_Range
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 14 Sep 2021 08:21:20 +0000 (10:21 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 14 Sep 2021 08:23:57 +0000 (10:23 +0200)
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.

gcc/ada/gcc-interface/utils.c

index bfacb0eaeb435355061b5b0277503f1d5855edf4..b71f7489066f7da315f18ae22757854acce7d199 100644 (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);
This page took 0.066563 seconds and 5 git commands to generate.