[Ada] Remove redundant calls to UI_To_Int in relational operands
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 23 Nov 2020 22:52:59 +0000 (23:52 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 15 Dec 2020 11:41:52 +0000 (06:41 -0500)
commit9c852dfb057c645e1dc1e29115e57062b878bdc5
treec9a0ba4392c21a2017d448193588b6f68e1b231e
parent10853d6e8a0cc92f2dcf2a396db9ae73f75b5abc
[Ada] Remove redundant calls to UI_To_Int in relational operands

gcc/ada/

* exp_disp.adb (Make_Tags): Remove call to UI_To_Int.
* sem_attr.adb (Check_Array_Type): Likewise; also, refine type
of a local variable.
(Analyze_Attribute): Likewise.
(Get_Enclosing_Object): Likewise.
* sem_util.adb (Get_Enum_Lit_From_Pos): Likewise.
gcc/ada/exp_disp.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_util.adb