]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Revert mistaken negation related to references to labels
authorPiotr Trojanek <trojanek@adacore.com>
Sat, 30 May 2020 18:54:49 +0000 (20:54 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:17:14 +0000 (13:17 -0300)
gcc/ada/

* sem_ch8.adb (Find_Direct_Name): Fix code to match the comment.

gcc/ada/sem_ch8.adb

index 08414b2170c21ac457e2fd867f853a234ab304c9..f23db52c2891f64839f9e2c1d36c2d7cb4a07e62 100644 (file)
@@ -6047,9 +6047,9 @@ package body Sem_Ch8 is
 
                begin
                   --  Generate reference unless this is an actual parameter
-                  --  (see comment below)
+                  --  (see comment below).
 
-                  if Reference_OK and then Is_Actual_Parameter then
+                  if Reference_OK and then not Is_Actual_Parameter then
                      Generate_Reference (E, N);
                      Set_Referenced (E, R);
                   end if;