Skip to content

Commit

Permalink
[flang] Fix build warning on now-unused variable (#70852)
Browse files Browse the repository at this point in the history
A recent change of mine caused a local variable to become obsolete in
its function, leading to a warning with some build compilers that is
fatal under -Werror, breaking a build bot. Remove the variable.
  • Loading branch information
klausler authored Oct 31, 2023
1 parent f19af90 commit b1b4bf0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions flang/lib/Evaluate/type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ static bool IsDescriptor(const ObjectEntityDetails &details) {
if (IsDescriptor(details.type()) || details.IsAssumedRank()) {
return true;
}
std::size_t j{0};
for (const ShapeSpec &shapeSpec : details.shape()) {
++j;
if (const auto &ub{shapeSpec.ubound().GetExplicit()}) {
if (!IsConstantExpr(*ub)) {
return true;
Expand Down

0 comments on commit b1b4bf0

Please sign in to comment.