From 1754651dd150139d64cdae190afe1faabf69a403 Mon Sep 17 00:00:00 2001 From: jeanPerier Date: Wed, 12 Jun 2024 09:22:22 +0200 Subject: [PATCH] [flang] fix evaluate::Expr hashing in lowering (#95079) Fixes https://github.com/llvm/llvm-project/issues/61610. --- flang/include/flang/Lower/Support/Utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/include/flang/Lower/Support/Utils.h b/flang/include/flang/Lower/Support/Utils.h index 64641ab4b6ca1..e791f3dbb221a 100644 --- a/flang/include/flang/Lower/Support/Utils.h +++ b/flang/include/flang/Lower/Support/Utils.h @@ -502,7 +502,7 @@ class IsEqualEvaluateExpr { return std::visit( [&](const auto &p, const auto &q) { return isEqual(p, q); }, x.parent(), y.parent()) && - isEqual(x.lower(), y.lower()) && isEqual(x.lower(), y.lower()); + isEqual(x.lower(), y.lower()) && isEqual(x.upper(), y.upper()); } static bool isEqual(const Fortran::evaluate::StaticDataObject::Pointer &x, const Fortran::evaluate::StaticDataObject::Pointer &y) {