Skip to content

Commit 423f53c

Browse files
author
Razvan Lupusoru
committed
Fix formatting issues
1 parent f42fffb commit 423f53c

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

flang/include/flang/Lower/DirectivesCommon.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,8 @@ fir::factory::AddrAndBoundsInfo gatherDataOperandAddrAndBounds(
951951
converter.genExprAddr(operandLocation, designator, stmtCtx);
952952
info.addr = fir::getBase(compExv);
953953
info.rawInput = info.addr;
954-
if (genDefaultBounds && mlir::isa<fir::SequenceType>(fir::unwrapRefType(info.addr.getType())))
954+
if (genDefaultBounds &&
955+
mlir::isa<fir::SequenceType>(fir::unwrapRefType(info.addr.getType())))
955956
bounds = fir::factory::genBaseBoundsOps<BoundsOp, BoundsType>(
956957
builder, operandLocation, compExv,
957958
/*isAssumedSize=*/false);

flang/include/flang/Optimizer/Builder/DirectivesCommon.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ inline AddrAndBoundsInfo getDataOperandBaseAddr(fir::FirOpBuilder &builder,
8181
// all address/dimension retrievals. For Fortran optional though, leave
8282
// the load generation for later so it can be done in the appropriate
8383
// if branches.
84-
if (unwrapFirBox && mlir::isa<fir::ReferenceType>(symAddr.getType()) && !isOptional) {
84+
if (unwrapFirBox && mlir::isa<fir::ReferenceType>(symAddr.getType()) &&
85+
!isOptional) {
8586
mlir::Value addr = builder.create<fir::LoadOp>(loc, symAddr);
8687
return AddrAndBoundsInfo(addr, rawInput, isPresent, boxTy);
8788
}

flang/lib/Lower/OpenACC.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,8 @@ static void genCombiner(fir::FirOpBuilder &builder, mlir::Location loc,
13311331
} else if (allConstantBound) {
13321332
// Use the constant bound directly in the combiner region so they do not
13331333
// need to be passed as block argument.
1334-
assert(!bounds.empty() && "seq type with constant bounds cannot have empty bounds");
1334+
assert(!bounds.empty() &&
1335+
"seq type with constant bounds cannot have empty bounds");
13351336
for (auto bound : llvm::reverse(bounds)) {
13361337
auto dataBound =
13371338
mlir::dyn_cast<mlir::acc::DataBoundsOp>(bound.getDefiningOp());
@@ -1402,12 +1403,14 @@ static void genCombiner(fir::FirOpBuilder &builder, mlir::Location loc,
14021403
getSubscriptsFromArgs(recipe.getCombinerRegion().getArguments());
14031404
auto leftEntity = hlfir::Entity{value1};
14041405
if (fir::isBoxAddress(value1.getType()))
1405-
leftEntity = hlfir::Entity{builder.create<fir::LoadOp>(loc, value1).getResult()};
1406+
leftEntity =
1407+
hlfir::Entity{builder.create<fir::LoadOp>(loc, value1).getResult()};
14061408
auto left =
14071409
genDesignateWithTriplets(builder, loc, leftEntity, triplets, shape);
14081410
auto rightEntity = hlfir::Entity{value2};
14091411
if (fir::isBoxAddress(value2.getType()))
1410-
rightEntity = hlfir::Entity{builder.create<fir::LoadOp>(loc, value2).getResult()};
1412+
rightEntity =
1413+
hlfir::Entity{builder.create<fir::LoadOp>(loc, value2).getResult()};
14111414
auto right =
14121415
genDesignateWithTriplets(builder, loc, rightEntity, triplets, shape);
14131416

0 commit comments

Comments
 (0)