@@ -174,7 +174,8 @@ SILFunction *VJPEmitter::createEmptyPullback() {
174174 SILParameterInfo inoutParamTanParam (
175175 origResult.getInterfaceType ()
176176 ->getAutoDiffTangentSpace (lookupConformance)
177- ->getType ()->getCanonicalType (witnessCanGenSig),
177+ ->getType ()
178+ ->getCanonicalType (witnessCanGenSig),
178179 inoutParamTanConvention);
179180 pbParams.push_back (inoutParamTanParam);
180181 } else {
@@ -184,15 +185,17 @@ SILFunction *VJPEmitter::createEmptyPullback() {
184185 pbParams.push_back (getTangentParameterInfoForOriginalResult (
185186 origResult.getInterfaceType ()
186187 ->getAutoDiffTangentSpace (lookupConformance)
187- ->getType ()->getCanonicalType (witnessCanGenSig),
188+ ->getType ()
189+ ->getCanonicalType (witnessCanGenSig),
188190 origResult.getConvention ()));
189191 }
190192
191193 // Accept a pullback struct in the pullback parameter list. This is the
192194 // returned pullback's closure context.
193195 auto *origExit = &*original->findReturnBB ();
194196 auto *pbStruct = pullbackInfo.getLinearMapStruct (origExit);
195- auto pbStructType = pbStruct->getDeclaredInterfaceType ()->getCanonicalType (witnessCanGenSig);
197+ auto pbStructType =
198+ pbStruct->getDeclaredInterfaceType ()->getCanonicalType (witnessCanGenSig);
196199 pbParams.push_back ({pbStructType, ParameterConvention::Direct_Owned});
197200
198201 // Add pullback results for the requested wrt parameters.
@@ -205,7 +208,8 @@ SILFunction *VJPEmitter::createEmptyPullback() {
205208 adjResults.push_back (getTangentResultInfoForOriginalParameter (
206209 origParam.getInterfaceType ()
207210 ->getAutoDiffTangentSpace (lookupConformance)
208- ->getType ()->getCanonicalType (witnessCanGenSig),
211+ ->getType ()
212+ ->getCanonicalType (witnessCanGenSig),
209213 origParam.getConvention ()));
210214 }
211215
@@ -275,8 +279,8 @@ void VJPEmitter::visitSILInstruction(SILInstruction *inst) {
275279
276280SILType VJPEmitter::getLoweredType (Type type) {
277281 auto vjpGenSig = vjp->getLoweredFunctionType ()->getSubstGenericSignature ();
278- Lowering::AbstractionPattern pattern (
279- vjpGenSig, type->getCanonicalType (vjpGenSig));
282+ Lowering::AbstractionPattern pattern (vjpGenSig,
283+ type->getCanonicalType (vjpGenSig));
280284 return vjp->getLoweredType (pattern, type);
281285}
282286
@@ -490,9 +494,8 @@ void VJPEmitter::visitSwitchEnumInstBase(SwitchEnumInstBase *sei) {
490494 newDefaultBB, caseBBs);
491495 break ;
492496 case SILInstructionKind::SwitchEnumAddrInst:
493- getBuilder ().createSwitchEnumAddr (sei->getLoc (),
494- getOpValue (sei->getOperand ()),
495- newDefaultBB, caseBBs);
497+ getBuilder ().createSwitchEnumAddr (
498+ sei->getLoc (), getOpValue (sei->getOperand ()), newDefaultBB, caseBBs);
496499 break ;
497500 default :
498501 llvm_unreachable (" Expected `switch_enum` or `switch_enum_addr`" );
0 commit comments