Skip to content

Commit cb557da

Browse files
committed
format source code
1 parent 10747a9 commit cb557da

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

flang/lib/Evaluate/intrinsics.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ std::optional<SpecificCall> IntrinsicInterface::Match(
19451945
int elementalRank{0};
19461946
for (std::size_t j{0}; j < dummies; ++j) {
19471947
const IntrinsicDummyArgument &d{dummy[std::min(j, dummyArgPatterns - 1)]};
1948-
if (const ActualArgument * arg{actualForDummy[j]}) {
1948+
if (const ActualArgument *arg{actualForDummy[j]}) {
19491949
bool isAssumedRank{IsAssumedRank(*arg)};
19501950
if (isAssumedRank && d.rank != Rank::anyOrAssumedRank &&
19511951
d.rank != Rank::arrayOrAssumedRank) {
@@ -2283,8 +2283,7 @@ std::optional<SpecificCall> IntrinsicInterface::Match(
22832283
case Rank::locReduced:
22842284
case Rank::scalarIfDim:
22852285
if (dummy[*dimArg].optionality == Optionality::required) {
2286-
if (const Symbol *
2287-
whole{
2286+
if (const Symbol *whole{
22882287
UnwrapWholeSymbolOrComponentDataRef(actualForDummy[*dimArg])}) {
22892288
if (IsOptional(*whole) || IsAllocatableOrObjectPointer(whole)) {
22902289
if (context.languageFeatures().ShouldWarn(
@@ -2362,7 +2361,7 @@ std::optional<SpecificCall> IntrinsicInterface::Match(
23622361
// Rearrange the actual arguments into dummy argument order.
23632362
ActualArguments rearranged(dummies);
23642363
for (std::size_t j{0}; j < dummies; ++j) {
2365-
if (ActualArgument * arg{actualForDummy[j]}) {
2364+
if (ActualArgument *arg{actualForDummy[j]}) {
23662365
rearranged[j] = std::move(*arg);
23672366
}
23682367
}

flang/lib/Optimizer/Builder/IntrinsicCall.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ static constexpr IntrinsicHandler handlers[]{
224224
/*isElemental=*/false},
225225
{"etime",
226226
&I::genEtime,
227-
{{{"values", asBox},
228-
{"time", asBox}}},
227+
{{{"values", asBox}, {"time", asBox}}},
229228
/*isElemental=*/false},
230229
{"execute_command_line",
231230
&I::genExecuteCommandLine,
@@ -3236,8 +3235,7 @@ void IntrinsicLibrary::genExecuteCommandLine(
32363235
}
32373236

32383237
// ETIME
3239-
void IntrinsicLibrary::genEtime(
3240-
llvm::ArrayRef<fir::ExtendedValue> args) {
3238+
void IntrinsicLibrary::genEtime(llvm::ArrayRef<fir::ExtendedValue> args) {
32413239
assert(args.size() == 2);
32423240

32433241
mlir::Value values = fir::getBase(args[0]);

0 commit comments

Comments
 (0)