gcc/ada/
* sem_util.adb (Find_Overlaid_Entity): Fix style in comment.
(Note_Possible_Modification): Simplify repeated calls to Ekind.
Expr := Prefix (Expr);
exit;
- -- Check for Const where Const is a constant entity
+ -- Check for Const where Const is a constant entity
elsif Is_Entity_Name (Expr)
and then Ekind (Entity (Expr)) = E_Constant
-- Follow renaming chain
- if (Ekind (Ent) = E_Variable or else Ekind (Ent) = E_Constant)
+ if Ekind_In (Ent, E_Variable, E_Constant)
and then Present (Renamed_Object (Ent))
then
Exp := Renamed_Object (Ent);