[flang-commits] [flang] 1754651 - [flang] fix evaluate::Expr hashing in lowering (#95079)
via flang-commits
flang-commits at lists.llvm.org
Wed Jun 12 00:22:25 PDT 2024
Author: jeanPerier
Date: 2024-06-12T09:22:22+02:00
New Revision: 1754651dd150139d64cdae190afe1faabf69a403
URL: https://github.com/llvm/llvm-project/commit/1754651dd150139d64cdae190afe1faabf69a403
DIFF: https://github.com/llvm/llvm-project/commit/1754651dd150139d64cdae190afe1faabf69a403.diff
LOG: [flang] fix evaluate::Expr hashing in lowering (#95079)
Fixes https://github.com/llvm/llvm-project/issues/61610.
Added:
Modified:
flang/include/flang/Lower/Support/Utils.h
Removed:
################################################################################
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) {
More information about the flang-commits
mailing list