mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-27 10:18:36 +00:00
[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:
parent
67d9276b16
commit
6ce82eae1f
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user