Skip to content

Commit a50cf9b

Browse files
authored
---
yaml --- r: 340985 b: refs/heads/rxwei-patch-1 c: a02e81e h: refs/heads/master i: 340983: e2365fb
1 parent 308dda7 commit a50cf9b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: a5bff23519ae4e35498cddba3d3a02fb26d5b157
1018+
refs/heads/rxwei-patch-1: a02e81e63f31a002e733cc5384550e319d059889
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/lib/SIL/SILVerifier.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,9 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
14911491
adfi->getParameterIndices(), /*resultIndex*/ 0, order,
14921492
AutoDiffAssociatedFunctionKind::JVP, F.getModule(),
14931493
LookUpConformanceInModule(F.getModule().getSwiftModule()));
1494-
require(expectedJVPType == jvpType, "Unexpected JVP function type");
1494+
requireSameType(SILType::getPrimitiveObjectType(jvpType),
1495+
SILType::getPrimitiveObjectType(expectedJVPType),
1496+
"JVP type does not match expected JVP type");
14951497
auto vjpType = pair.second->getType().getAs<SILFunctionType>();
14961498
require(vjpType, "The VJP function must have a function type");
14971499
require(!vjpType->isDifferentiable(),
@@ -1500,7 +1502,9 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
15001502
adfi->getParameterIndices(), /*resultIndex*/ 0, order,
15011503
AutoDiffAssociatedFunctionKind::VJP, F.getModule(),
15021504
LookUpConformanceInModule(F.getModule().getSwiftModule()));
1503-
require(expectedVJPType == vjpType, "Unexpected VJP function type");
1505+
requireSameType(SILType::getPrimitiveObjectType(vjpType),
1506+
SILType::getPrimitiveObjectType(expectedVJPType),
1507+
"VJP type does not match expected VJP type");
15041508
}
15051509
}
15061510
}

0 commit comments

Comments
 (0)