[flang-commits] [flang] [flang] fix evaluate::Expr hashing in lowering (PR #95079)
via flang-commits
flang-commits at lists.llvm.org
Tue Jun 11 00:25:30 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-fir-hlfir
Author: None (jeanPerier)
<details>
<summary>Changes</summary>
Fixes https://github.com/llvm/llvm-project/issues/61610.
---
Full diff: https://github.com/llvm/llvm-project/pull/95079.diff
1 Files Affected:
- (modified) flang/include/flang/Lower/Support/Utils.h (+1-1)
``````````diff
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) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/95079
More information about the flang-commits
mailing list