public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-527] [Ada] Remove superfluous call to Original_Node
@ 2022-05-17  8:27 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-17  8:27 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:87a655842470b3f764f6809206d1236227c315d3

commit r13-527-g87a655842470b3f764f6809206d1236227c315d3
Author: Etienne Servais <servais@adacore.com>
Date:   Thu Feb 17 11:40:46 2022 +0100

    [Ada] Remove superfluous call to Original_Node
    
    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.

Diff:
---
 gcc/ada/sem_ch5.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/sem_ch5.adb b/gcc/ada/sem_ch5.adb
index 7fd5ab304f1..633e5c7e543 100644
--- a/gcc/ada/sem_ch5.adb
+++ b/gcc/ada/sem_ch5.adb
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-17  8:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17  8:27 [gcc r13-527] [Ada] Remove superfluous call to Original_Node Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).