2020-06-16 Piotr Trojanek <trojanek@adacore.com>
gcc/ada/
* einfo.adb, exp_spark.adb, exp_util.adb, sem_eval.adb: Replace
"Ekind ... in Object_Kind" with "Is_Object (...)".
function Current_Value (Id : E) return N is
begin
- pragma Assert (Ekind (Id) in Object_Kind);
+ pragma Assert (Is_Object (Id));
return Node9 (Id);
end Current_Value;
begin
-- Replace a reference to a renaming with the actual renamed object
- if Ekind (Obj_Id) in Object_Kind then
+ if Is_Object (Obj_Id) then
Ren := Renamed_Object (Obj_Id);
if Present (Ren) then
-- Immediate return, nothing doing, if this is not an object
- if Ekind (Ent) not in Object_Kind then
+ if not Is_Object (Ent) then
return;
end if;
(Is_Known_Valid (Entity (Opnd))
or else Ekind (Entity (Opnd)) = E_In_Parameter
or else
- (Ekind (Entity (Opnd)) in Object_Kind
+ (Is_Object (Entity (Opnd))
and then Present (Current_Value (Entity (Opnd))))))
or else Is_OK_Static_Expression (Opnd);
end Is_Known_Valid_Operand;