@@ -2418,8 +2418,8 @@ class ArrayExprLowering {
2418
2418
using ExtValue = fir::ExtendedValue;
2419
2419
// / Active iteration space.
2420
2420
using IterSpace = const IterationSpace &;
2421
- // / Current continuation. Function that we generate IR for a single iteration
2422
- // / of the pending iterative loop structure.
2421
+ // / Current continuation. Function that will generate IR for a single
2422
+ // / iteration of the pending iterative loop structure.
2423
2423
using CC = std::function<ExtValue(IterSpace)>;
2424
2424
// / Projection continuation. Function that will project one iteration space
2425
2425
// / into another.
@@ -3375,8 +3375,8 @@ class ArrayExprLowering {
3375
3375
// Add the fir.result for all loops except the innermost one. We must also
3376
3376
// terminate the innermost explicit bounds loop here as well.
3377
3377
if (loopFirst > 0 ) {
3378
- builder.setInsertionPointToEnd (startBlock);
3379
- builder.create <fir::ResultOp>(loc, loops[loopFirst].getResult (0 ));
3378
+ builder.setInsertionPointToEnd (startBlock);
3379
+ builder.create <fir::ResultOp>(loc, loops[loopFirst].getResult (0 ));
3380
3380
}
3381
3381
for (std::remove_const_t <decltype (loopFirst)> i = loopFirst;
3382
3382
i + 1 < loopFirst + loopDepth; ++i) {
@@ -4488,8 +4488,7 @@ class ArrayExprLowering {
4488
4488
if (auto optShape = Fortran::evaluate::GetShape (x)) {
4489
4489
llvm::SmallVector<mlir::Value> result;
4490
4490
convertFEShape (*optShape, result);
4491
- if (!result.empty ())
4492
- return result;
4491
+ return result;
4493
4492
}
4494
4493
return {};
4495
4494
}
0 commit comments