[flang-commits] [flang] 7c7e215 - flang: fix a copy and paste mistake

Sylvestre Ledru via flang-commits flang-commits at lists.llvm.org
Thu Jan 26 00:18:59 PST 2023


Author: Sylvestre Ledru
Date: 2023-01-26T09:18:49+01:00
New Revision: 7c7e215f0e2be690358484df2a5c149b87b0aa6c

URL: https://github.com/llvm/llvm-project/commit/7c7e215f0e2be690358484df2a5c149b87b0aa6c
DIFF: https://github.com/llvm/llvm-project/commit/7c7e215f0e2be690358484df2a5c149b87b0aa6c.diff

LOG: flang: fix a copy and paste mistake

Reviewed By: clementval

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

Added: 
    

Modified: 
    flang/lib/Lower/IterationSpace.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/IterationSpace.cpp b/flang/lib/Lower/IterationSpace.cpp
index dab15f301081c..0c6009216119c 100644
--- a/flang/lib/Lower/IterationSpace.cpp
+++ b/flang/lib/Lower/IterationSpace.cpp
@@ -512,7 +512,7 @@ class IsEqualEvaluateExpr {
   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,


        


More information about the flang-commits mailing list