[Ada] Simplify detection of delayed aggregates

gcc/ada/

	* exp_aggr.adb (Is_Delayed_Aggregate): Simplify.
This commit is contained in:
Piotr Trojanek
2021-09-29 12:18:36 +02:00
committed by Pierre-Marie de Rodat
parent b52e15202c
commit 90084d7400
+2 -5
View File
@@ -8978,11 +8978,8 @@ package body Exp_Aggr is
Kind := Nkind (Node);
end if;
if Kind not in N_Aggregate | N_Extension_Aggregate then
return False;
else
return Expansion_Delayed (Node);
end if;
return Kind in N_Aggregate | N_Extension_Aggregate
and then Expansion_Delayed (Node);
end Is_Delayed_Aggregate;
--------------------------------