[NFC][flang] Remove unused code in lowerExplicitLowerBounds

There is no need to lower the implicit lower bounds for assumed-shape
array in lowerExplicitLowerBounds. Remove the unused code.

Reviewed By: Jean Perier

Differential Revision: https://reviews.llvm.org/D122280
This commit is contained in:
Peixin-Qiao 2022-03-24 16:50:20 +08:00
parent 67d9276b16
commit 6ce82eae1f

View File

@ -1060,9 +1060,6 @@ static void lowerExplicitLowerBounds(
mlir::Value lb = builder.createConvert(
loc, idxTy, genScalarValue(converter, loc, expr, symMap, stmtCtx));
result.emplace_back(lb);
} else if (!spec->lbound().isColon()) {
// Implicit lower bound is 1 (Fortran 2018 section 8.5.8.3 point 3.)
result.emplace_back(builder.createIntegerConstant(loc, idxTy, 1));
}
}
assert(result.empty() || result.size() == box.dynamicBound().size());