[Ada] Add early return to Apply_Universal_Integer_Attribute_Checks
2020-06-17 Eric Botcazou <ebotcazou@adacore.com> gcc/ada/ * checks.adb (Apply_Universal_Integer_Attribute_Checks): Do not do anything when the type of the node is already Universal_Integer.
This commit is contained in:
parent
86f8060436
commit
48b6386f5d
1 changed files with 5 additions and 0 deletions
|
@ -3823,6 +3823,11 @@ package body Checks is
|
|||
if Inside_A_Generic then
|
||||
return;
|
||||
|
||||
-- Nothing to do if the result type is universal integer
|
||||
|
||||
elsif Typ = Universal_Integer then
|
||||
return;
|
||||
|
||||
-- Nothing to do if checks are suppressed
|
||||
|
||||
elsif Range_Checks_Suppressed (Typ)
|
||||
|
|
Loading…
Add table
Reference in a new issue