| E_Anonymous_Access_Subprogram_Type
and then not Has_Convention_Pragma (Typ)
then
- Set_Basic_Convention (Typ, Val);
+ Set_Convention (Typ, Val);
Set_Has_Convention_Pragma (Typ);
-- And for the access subprogram type, deal similarly with the
declare
Dtype : constant Entity_Id := Designated_Type (Typ);
begin
- if Ekind (Dtype) = E_Subprogram_Type
- and then not Has_Convention_Pragma (Dtype)
- then
- Set_Basic_Convention (Dtype, Val);
+ if Ekind (Dtype) = E_Subprogram_Type then
+ pragma Assert (not Has_Convention_Pragma (Dtype));
+ Set_Convention (Dtype, Val);
Set_Has_Convention_Pragma (Dtype);
end if;
end;
Mutate_Ekind (Anon_Type, E_Anonymous_Access_Subprogram_Type);
end if;
- Set_Can_Use_Internal_Rep
- (Anon_Type, not Always_Compatible_Rep_On_Target);
-
-- If the anonymous access is associated with a protected operation,
-- create a reference to it after the enclosing protected definition
-- because the itype will be used in the subsequent bodies.