]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Remove superfluous call to Original_Node
authorEtienne Servais <servais@adacore.com>
Thu, 17 Feb 2022 10:40:46 +0000 (11:40 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 17 May 2022 08:25:42 +0000 (08:25 +0000)
The function Same_Object starts by taking the Original_Node of its
arguments.

gcc/ada/

* sem_ch5.adb (Analyze_Assignment): Remove superfluous call to
Original_Node.

gcc/ada/sem_ch5.adb

index 7fd5ab304f161279070e544788c7016c698b42ed..633e5c7e5435b8acd901c9a713627776235e5c2a 100644 (file)
@@ -1111,7 +1111,7 @@ package body Sem_Ch5 is
 
          --  Where the object is the same on both sides
 
-         and then Same_Object (Lhs, Original_Node (Rhs))
+         and then Same_Object (Lhs, Rhs)
 
          --  But exclude the case where the right side was an operation that
          --  got rewritten (e.g. JUNK + K, where K was known to be zero). We