[Ada] Minor cleanup with Is_Assignable
gcc/ada/ * sem_ch5.adb (Analyze_Assignment): Reuse Is_Assignable.
This commit is contained in:
parent
db290a9e37
commit
62226c3554
@ -822,9 +822,7 @@ package body Sem_Ch5 is
|
||||
-- that of the target mutable object.
|
||||
|
||||
if Is_Entity_Name (Lhs)
|
||||
and then Ekind_In (Entity (Lhs), E_In_Out_Parameter,
|
||||
E_Out_Parameter,
|
||||
E_Variable)
|
||||
and then Is_Assignable (Entity (Lhs))
|
||||
and then Is_Composite_Type (T1)
|
||||
and then not Is_Constrained (Etype (Entity (Lhs)))
|
||||
and then Nkind_In (Rhs, N_If_Expression, N_Case_Expression)
|
||||
|
Loading…
x
Reference in New Issue
Block a user