| Issue |
61609
|
| Summary |
[flang] Copy-pasted code. Seems one of them is wrong. May be the second should be x.upper(), y.upper()?
|
| Labels |
|
| Assignees |
|
| Reporter |
ustchcs-bugfinder
|
https://github.com/llvm/llvm-project/blob/08d094a0e457360ad8b94b017d2dc277e697ca76/flang/lib/Lower/IterationSpace.cpp#L451
Current code:
```
static bool isEqual(const Fortran::evaluate::Substring &x,
const Fortran::evaluate::Substring &y) {
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()); // ----> Same condition. May be the second should be x.upper()?
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs