flang: fix a copy and paste mistake
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 26 Jan 2023 08:18:00 +0000 (09:18 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 26 Jan 2023 08:18:49 +0000 (09:18 +0100)
Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D142488

flang/lib/Lower/IterationSpace.cpp

index dab15f3..0c60092 100644 (file)
@@ -512,7 +512,7 @@ public:
   template <int KIND>
   static bool isEqual(const Fortran::evaluate::LogicalOperation<KIND> &x,
                       const Fortran::evaluate::LogicalOperation<KIND> &y) {
-    return isEqual(x.left(), y.left()) && isEqual(x.right(), x.right());
+    return isEqual(x.left(), y.left()) && isEqual(x.right(), y.right());
   }
   template <typename A>
   static bool isEqual(const Fortran::evaluate::Relational<A> &x,