diff mbox series

[COMMITTED,35/35] ada: Remove obsolete reference in comment

Message ID 20240516092606.41242-35-poulhies@adacore.com
State New
Headers show
Series [COMMITTED,01/35] ada: Fix docs and comments about pragmas for Boolean-valued aspects | expand

Commit Message

Marc Poulhiès May 16, 2024, 9:26 a.m. UTC
From: Eric Botcazou <ebotcazou@adacore.com>

gcc/ada/

	* exp_ch7.adb (Attach_Object_To_Master_Node): Remove reference to a
	transient object in comment.

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/exp_ch7.adb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/gcc/ada/exp_ch7.adb b/gcc/ada/exp_ch7.adb
index f9738e115f9..993c13c7318 100644
--- a/gcc/ada/exp_ch7.adb
+++ b/gcc/ada/exp_ch7.adb
@@ -798,10 +798,10 @@  package body Exp_Ch7 is
          return;
       end if;
 
-      --  When the transient object is initialized by an aggregate, the
-      --  attachment must occur after the last aggregate assignment takes
-      --  place. Only then is the object considered initialized. Likewise
-      --  if we have a build-in-place call: we must attach only after it.
+      --  When the object is initialized by an aggregate, the attachment must
+      --  occur after the last aggregate assignment takes place; only then is
+      --  the object considered initialized. Likewise if it is initialized by
+      --  a build-in-place call: we must attach only after the call.
 
       if Ekind (Obj_Id) in E_Constant | E_Variable then
          if Present (Last_Aggregate_Assignment (Obj_Id)) then