Skip to content

Commit 1754651

Browse files
authored
[flang] fix evaluate::Expr hashing in lowering (#95079)
Fixes #61610.
1 parent 5989450 commit 1754651

File tree

1 file changed

+1
-1
lines changed
  • flang/include/flang/Lower/Support

1 file changed

+1
-1
lines changed

flang/include/flang/Lower/Support/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ class IsEqualEvaluateExpr {
502502
return std::visit(
503503
[&](const auto &p, const auto &q) { return isEqual(p, q); },
504504
x.parent(), y.parent()) &&
505-
isEqual(x.lower(), y.lower()) && isEqual(x.lower(), y.lower());
505+
isEqual(x.lower(), y.lower()) && isEqual(x.upper(), y.upper());
506506
}
507507
static bool isEqual(const Fortran::evaluate::StaticDataObject::Pointer &x,
508508
const Fortran::evaluate::StaticDataObject::Pointer &y) {

0 commit comments

Comments
 (0)