Skip to content

Commit 9373b90

Browse files
clang-format
1 parent cf42b12 commit 9373b90

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

flang/lib/Evaluate/call.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,14 @@ static void DetermineCopyInOutArgument(
260260
// Actual argument expressions that aren’t variables are copy-in, but
261261
// not copy-out.
262262
actual.set_mayNeedCopyIn();
263-
}
264-
else if (!IsSimplyContiguous(actual, sc.foldingContext())) {
263+
} else if (!IsSimplyContiguous(actual, sc.foldingContext())) {
265264
// Actual arguments that are variables are copy-in when non-contiguous.
266265
// They are copy-out when don't have vector subscripts
267266
actual.set_mayNeedCopyIn();
268267
if (!HasVectorSubscript(actual)) {
269268
actual.set_mayNeedCopyOut();
270269
}
271-
}
272-
else if (ExtractCoarrayRef(actual)) {
270+
} else if (ExtractCoarrayRef(actual)) {
273271
// Coindexed actual args need copy-in and copy-out
274272
actual.set_mayNeedCopyIn();
275273
actual.set_mayNeedCopyOut();

flang/lib/Evaluate/check-expression.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,8 +1202,9 @@ std::optional<bool> IsContiguous(const ActualArgument &actual,
12021202
FoldingContext &fc, bool namedConstantSectionsAreContiguous,
12031203
bool firstDimensionStride1) {
12041204
auto *expr{actual.UnwrapExpr()};
1205-
return expr && IsContiguous(*expr, fc, namedConstantSectionsAreContiguous,
1206-
firstDimensionStride1);
1205+
return expr &&
1206+
IsContiguous(
1207+
*expr, fc, namedConstantSectionsAreContiguous, firstDimensionStride1);
12071208
}
12081209

12091210
template std::optional<bool> IsContiguous(const Expr<SomeType> &,

0 commit comments

Comments
 (0)