2020-06-05 Piotr Trojanek <trojanek@adacore.com>
gcc/ada/
* exp_ch3.adb, sem_ch8.adb, sem_util.adb: Use Is_Incomplete_Type
to make the code easier to read.
-- limited-with'ed package, we need to use the nonlimited view in
-- case it has tasks.
- if Ekind (Desig_Typ) in Incomplete_Kind
+ if Is_Incomplete_Type (Desig_Typ)
and then Present (Non_Limited_View (Desig_Typ))
then
Desig_Typ := Non_Limited_View (Desig_Typ);
-- limited-with clauses
if From_Limited_With (T_Name)
- and then Ekind (T_Name) in Incomplete_Kind
+ and then Is_Incomplete_Type (T_Name)
and then Present (Non_Limited_View (T_Name))
and then Is_Interface (Non_Limited_View (T_Name))
then
Ent : Entity_Id := First_Entity (Limited_View (Scope (Typ)));
begin
while Present (Ent) loop
- if Ekind (Ent) in Incomplete_Kind
+ if Is_Incomplete_Type (Ent)
and then Non_Limited_View (Ent) = Typ
then
return Ent;