[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:
Eric Botcazou 2020-04-20 13:04:45 +02:00 committed by Pierre-Marie de Rodat
parent 86f8060436
commit 48b6386f5d

View file

@ -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)