]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Restore accidentally removed part of a comment about unset references
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 9 Jun 2022 21:23:46 +0000 (23:23 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 6 Jul 2022 13:29:47 +0000 (13:29 +0000)
Fix an unintentionally removed comment.

gcc/ada/

* sem_res.adb (Resolve_Actuals): Restore first sentence of a
comment.

gcc/ada/sem_res.adb

index 650b7d502c3f065dae38552a575c5959ff692943..8fbd2d5e2a54a35ae6372607925f9a10658efa34 100644 (file)
@@ -4620,6 +4620,7 @@ package body Sem_Res is
                  ("invalid use of untagged formal incomplete type", A);
             end if;
 
+            --  For mode IN, if actual is an entity, and the type of the formal
             --  has warnings suppressed, then we reset Never_Set_In_Source for
             --  the calling entity. The reason for this is to catch cases like
             --  GNAT.Spitbol.Patterns.Vstring_Var where the called subprogram