[Ada] Remove dead code for overlapping actuals and prefix notation
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 10 Mar 2021 08:45:11 +0000 (09:45 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 17 Jun 2021 14:32:12 +0000 (10:32 -0400)
gcc/ada/

* sem_warn.adb (Warn_On_Overlapping_Actuals): Remove dead code.

gcc/ada/sem_warn.adb

index cbe6956..1e62d47 100644 (file)
@@ -3788,12 +3788,6 @@ package body Sem_Warn is
                   then
                      null;
 
-                  --  If the actual is a function call in prefix notation,
-                  --  there is no real overlap.
-
-                  elsif Nkind (Act2) = N_Function_Call then
-                     null;
-
                   --  If type is explicitly not by-copy, assume that
                   --  aliasing is intended.