Skip to content

Commit 4f7f9bf

Browse files
committed
NFC: fix formatting.
1 parent cda8e1c commit 4f7f9bf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/SIL/SILFunctionType.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,8 @@ CanSILFunctionType SILFunctionType::getAutoDiffDerivativeFunctionType(
278278
if (tl.isAddressOnly()) {
279279
conv = ParameterConvention::Indirect_In_Guaranteed;
280280
} else {
281-
conv = tl.isTrivial()
282-
? ParameterConvention::Direct_Unowned
283-
: ParameterConvention::Direct_Guaranteed;
281+
conv = tl.isTrivial() ? ParameterConvention::Direct_Unowned
282+
: ParameterConvention::Direct_Guaranteed;
284283
}
285284
break;
286285
case ResultConvention::Unowned:

lib/SILOptimizer/Analysis/DifferentiableActivityAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ void DifferentiableActivityInfo::propagateUsefulThroughAddress(
370370
propagateUseful(use->getUser(), dependentVariableIndex);
371371
for (auto res : use->getUser()->getResults()) {
372372
#define SKIP_NODERIVATIVE(INST) \
373-
if (auto *projInst = dyn_cast<INST##Inst>(res)) \
374-
if (projInst->getField()->getAttrs().hasAttribute<NoDerivativeAttr>()) \
373+
if (auto *projInst = dyn_cast<INST##Inst>(res)) \
374+
if (projInst->getField()->getAttrs().hasAttribute<NoDerivativeAttr>()) \
375375
continue;
376376
SKIP_NODERIVATIVE(StructExtract)
377377
SKIP_NODERIVATIVE(StructElementAddr)

0 commit comments

Comments
 (0)