[Ada] Remove repeated calls to Attribute_Name
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 9 Oct 2020 13:49:29 +0000 (15:49 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 25 Nov 2020 13:22:24 +0000 (08:22 -0500)
commit6b0c5c722709d41d2c7a9ccacb7a4f0cf3bd38e2
tree026f81b04057660618debb43a8f3bd6f4be8abe4
parent193040a071b1170e5e22b7371d81b880f69aeae1
[Ada] Remove repeated calls to Attribute_Name

gcc/ada/

* exp_util.adb (Attribute_Constrained_Static_Value): Fix body
box.
* sem_attr.adb (Eval_Attribute): Replace repeated calls to
Attribute_Name with a captured value of the Attribute_Id; also,
remove extra parens around Is_Generic_Type.
gcc/ada/exp_util.adb
gcc/ada/sem_attr.adb