summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_res.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sem_res.adb')
-rw-r--r--gcc/ada/sem_res.adb15
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/ada/sem_res.adb b/gcc/ada/sem_res.adb
index 61f7712a090..e08370e7824 100644
--- a/gcc/ada/sem_res.adb
+++ b/gcc/ada/sem_res.adb
@@ -1583,15 +1583,16 @@ package body Sem_Res is
if ASIS_Mode and then Nkind (N) in N_Op then
if Is_Binary then
- Set_Parameter_Associations
- (Original_Node (N),
- New_List (New_Copy_Tree (Left_Opnd (N)),
- New_Copy_Tree (Right_Opnd (N))));
+ Rewrite (First (Parameter_Associations (Original_Node (N))),
+ New_Copy_Tree (Left_Opnd (N)));
+ Rewrite (Next (First (Parameter_Associations (Original_Node (N)))),
+ New_Copy_Tree (Right_Opnd (N)));
else
- Set_Parameter_Associations
- (Original_Node (N),
- New_List (New_Copy_Tree (Right_Opnd (N))));
+ Rewrite (First (Parameter_Associations (Original_Node (N))),
+ New_Copy_Tree (Right_Opnd (N)));
end if;
+
+ Set_Parent (Original_Node (N), Parent (N));
end if;
end Make_Call_Into_Operator;