gcc/ada/
* sem_ch6.adb (Analyze_Expression_Function): Use Orig_N variable
instead of repeated calls to Original_Node.
Push_Scope (Def_Id);
Install_Formals (Def_Id);
Preanalyze_Formal_Expression (Expr, Typ);
- Check_Limited_Return (Original_Node (N), Expr, Typ);
+ Check_Limited_Return (Orig_N, Expr, Typ);
End_Scope;
end if;
Check_Dynamically_Tagged_Expression
(Expr => Expr,
Typ => Etype (Def_Id),
- Related_Nod => Original_Node (N));
+ Related_Nod => Orig_N);
end if;
-- We must enforce checks for unreferenced formals in our newly