Skip to content

Commit c494878

Browse files
committed
format
1 parent e89ac24 commit c494878

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

flang/lib/Optimizer/Builder/HLFIRTools.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ bool hlfir::Entity::mayHaveNonDefaultLowerBounds() const {
221221
return true;
222222
}
223223

224-
mlir::Operation* traverseConverts(mlir::Operation *op) {
224+
mlir::Operation *traverseConverts(mlir::Operation *op) {
225225
while (auto convert = llvm::dyn_cast_or_null<fir::ConvertOp>(op))
226226
op = convert.getValue().getDefiningOp();
227227
return op;
@@ -1043,7 +1043,8 @@ conditionnalyEvaluate(mlir::Location loc, fir::FirOpBuilder &builder,
10431043

10441044
static fir::ExtendedValue translateVariableToExtendedValue(
10451045
mlir::Location loc, fir::FirOpBuilder &builder, hlfir::Entity variable,
1046-
bool forceHlfirBase = false, bool contiguousHint = false, bool keepScalarOptionalBoxed = false) {
1046+
bool forceHlfirBase = false, bool contiguousHint = false,
1047+
bool keepScalarOptionalBoxed = false) {
10471048
assert(variable.isVariable() && "must be a variable");
10481049
// When going towards FIR, use the original base value to avoid
10491050
// introducing descriptors at runtime when they are not required.
@@ -1062,8 +1063,7 @@ static fir::ExtendedValue translateVariableToExtendedValue(
10621063
const bool contiguous = variable.isSimplyContiguous() || contiguousHint;
10631064
const bool isAssumedRank = variable.isAssumedRank();
10641065
if (!contiguous || variable.isPolymorphic() ||
1065-
variable.isDerivedWithLengthParameters() ||
1066-
isAssumedRank) {
1066+
variable.isDerivedWithLengthParameters() || isAssumedRank) {
10671067
llvm::SmallVector<mlir::Value> nonDefaultLbounds;
10681068
if (!isAssumedRank)
10691069
nonDefaultLbounds = getNonDefaultLowerBounds(loc, builder, variable);
@@ -1085,7 +1085,8 @@ static fir::ExtendedValue translateVariableToExtendedValue(
10851085
return base;
10861086
});
10871087
}
1088-
llvm::SmallVector<mlir::Value> nonDefaultLbounds = getNonDefaultLowerBounds(loc, builder, variable);
1088+
llvm::SmallVector<mlir::Value> nonDefaultLbounds =
1089+
getNonDefaultLowerBounds(loc, builder, variable);
10891090
return fir::BoxValue(base, nonDefaultLbounds,
10901091
getExplicitTypeParams(variable));
10911092
}

0 commit comments

Comments
 (0)