diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-09-14 10:21:20 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-09-14 10:21:20 +0200 |
commit | 45d32da2bc0f62f196ec311dddb89563555b1a2a (patch) | |
tree | 468856bced1b2bf1ad1e06b4b0c9b9670763219b /gcc/ada | |
parent | f1f5b1fbbbe6662ce59bb177374c53ac6148f21e (diff) | |
download | gcc-45d32da2bc0f62f196ec311dddb89563555b1a2a.zip gcc-45d32da2bc0f62f196ec311dddb89563555b1a2a.tar.gz gcc-45d32da2bc0f62f196ec311dddb89563555b1a2a.tar.bz2 |
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.
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/gcc-interface/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 846d20a..04179df 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); |