File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -278,9 +278,8 @@ CanSILFunctionType SILFunctionType::getAutoDiffDerivativeFunctionType(
278
278
if (tl.isAddressOnly ()) {
279
279
conv = ParameterConvention::Indirect_In_Guaranteed;
280
280
} else {
281
- conv = tl.isTrivial ()
282
- ? ParameterConvention::Direct_Unowned
283
- : ParameterConvention::Direct_Guaranteed;
281
+ conv = tl.isTrivial () ? ParameterConvention::Direct_Unowned
282
+ : ParameterConvention::Direct_Guaranteed;
284
283
}
285
284
break ;
286
285
case ResultConvention::Unowned:
Original file line number Diff line number Diff line change @@ -370,8 +370,8 @@ void DifferentiableActivityInfo::propagateUsefulThroughAddress(
370
370
propagateUseful (use->getUser (), dependentVariableIndex);
371
371
for (auto res : use->getUser ()->getResults ()) {
372
372
#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>()) \
375
375
continue ;
376
376
SKIP_NODERIVATIVE (StructExtract)
377
377
SKIP_NODERIVATIVE (StructElementAddr)
You can’t perform that action at this time.
0 commit comments