aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/exp_ch7.adb
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2009-07-13 13:21:47 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2009-07-13 15:21:47 +0200
commitae525aa88f6af6131501a6171e3ee62e6b981b51 (patch)
tree7d58b5b4a02dc6f1de4d537cc33e9b1575010534 /gcc/ada/exp_ch7.adb
parenta7209434bdc1561d3adf2bc2c848c3b6ba74f19d (diff)
downloadgcc-ae525aa88f6af6131501a6171e3ee62e6b981b51.zip
gcc-ae525aa88f6af6131501a6171e3ee62e6b981b51.tar.gz
gcc-ae525aa88f6af6131501a6171e3ee62e6b981b51.tar.bz2
exp_ch7.adb, [...] (Make_Temporary): Utility to create a defining identifier and link it to the expression whose...
2009-07-13 Ed Schonberg <schonberg@adacore.com> * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb, exp_aggr.adb (Make_Temporary): Utility to create a defining identifier and link it to the expression whose value it captures. From-SVN: r149585
Diffstat (limited to 'gcc/ada/exp_ch7.adb')
-rw-r--r--gcc/ada/exp_ch7.adb6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/ada/exp_ch7.adb b/gcc/ada/exp_ch7.adb
index 6b78f05..9dd5857 100644
--- a/gcc/ada/exp_ch7.adb
+++ b/gcc/ada/exp_ch7.adb
@@ -3552,14 +3552,10 @@ package body Exp_Ch7 is
procedure Wrap_Transient_Expression (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
E : constant Entity_Id :=
- Make_Defining_Identifier (Loc, New_Internal_Name ('E'));
+ Make_Temporary (Loc, New_Internal_Name ('E'), N);
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,