]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/ada/exp_ch7.adb
ada: Fix missing finalization of extended return object on abnormal completion
[gcc.git] / gcc / ada / exp_ch7.adb
index 4ea5e6ede6451ba488de79e44b79d320ca07eebf..271dfd22618c5538e8b692b367778a9ab52bcfef 100644 (file)
@@ -2381,9 +2381,9 @@ package body Exp_Ch7 is
                elsif Is_Ignored_Ghost_Entity (Obj_Id) then
                   null;
 
-               --  Return object of a build-in-place function. This case is
-               --  recognized and marked by the expansion of an extended return
-               --  statement (see Expand_N_Extended_Return_Statement).
+               --  Return object of extended return statements. This case is
+               --  recognized and marked by the expansion of extended return
+               --  statements (see Expand_N_Extended_Return_Statement).
 
                elsif Needs_Finalization (Obj_Typ)
                  and then Is_Return_Object (Obj_Id)
This page took 0.027637 seconds and 5 git commands to generate.