We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4187700 commit 873468fCopy full SHA for 873468f
lib/SIL/SILVerifier.cpp
@@ -5379,7 +5379,7 @@ void SILDifferentiabilityWitness::verify(const SILModule &M) const {
5379
AutoDiffDerivativeFunctionKind::VJP, M.Types,
5380
LookUpConformanceInModule(M.getSwiftModule()),
5381
getDerivativeGenericSignature()->getCanonicalSignature());
5382
- SILVerifier(*jvp).requireSameType(
+ SILVerifier(*vjp).requireSameType(
5383
SILType::getPrimitiveObjectType(vjp->getLoweredFunctionType()),
5384
SILType::getPrimitiveObjectType(expectedVJPType),
5385
"VJP type does not match expected VJP type");
0 commit comments