Calls to First on No_List intentionally return Empty, so explicit guards
against No_List are unnecessary. Code cleanup; semantics is unaffected.
gcc/ada/
* sem_util.adb (Check_Function_Writable_Actuals): Remove guard against
a membership test with no alternatives; simplify with a membership test.
Collect_Identifiers (Right_Opnd (N));
end if;
- if Nkind (N) in N_In | N_Not_In
- and then Present (Alternatives (N))
- then
+ if Nkind (N) in N_Membership_Test then
Expr := First (Alternatives (N));
while Present (Expr) loop
Collect_Identifiers (Expr);