diff options
Diffstat (limited to 'gcc/ada/exp_ch7.adb')
| -rw-r--r-- | gcc/ada/exp_ch7.adb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/exp_ch7.adb b/gcc/ada/exp_ch7.adb index bd0d371..6b78f05 100644 --- a/gcc/ada/exp_ch7.adb +++ b/gcc/ada/exp_ch7.adb @@ -3556,6 +3556,10 @@ package body Exp_Ch7 is Etyp : constant Entity_Id := Etype (N); begin + -- Indicate the origin of the temporary, for better reports + -- in CodePeer. + + Set_Related_Expression (E, N); Insert_Actions (N, New_List ( Make_Object_Declaration (Loc, Defining_Identifier => E, |
