This patch removes two calls to Relocate_Node that were not needed.
This does not affect the behavior of the compiler.
gcc/ada/
* exp_ch4.adb (Expand_N_Case_Expression): Remove call to
Relocate_Node.
* sem_attr.adb (Analyze_Attribute): Likewise.
else
Alt_Expr :=
Make_Attribute_Reference (Alt_Loc,
- Prefix => Relocate_Node (Alt_Expr),
+ Prefix => Alt_Expr,
Attribute_Name => Name_Unrestricted_Access);
end if;
end if;
-- perform legality checks on the original tree.
if Nkind (P) in N_Raise_xxx_Error then
- Rewrite (N, Relocate_Node (P));
+ Rewrite (N, P);
P := Original_Node (P_Old);
end if;