Skip to content

Commit 0b7c7bb

Browse files
author
Marc Rasi
committed
fix Serialization.cpp compilation after merge
1 parent 17e8510 commit 0b7c7bb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/Serialization/Serialization.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,20 +2520,20 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
25202520

25212521
// SWIFT_ENABLE_TENSORFLOW
25222522
case DAK_Differentiable: {
2523-
auto abbrCode = DeclTypeAbbrCodes[DifferentiableDeclAttrLayout::Code];
2523+
auto abbrCode = S.DeclTypeAbbrCodes[DifferentiableDeclAttrLayout::Code];
25242524
auto attr = cast<DifferentiableAttr>(DA);
25252525

25262526
IdentifierID jvpName = 0;
25272527
DeclID jvpRef = 0;
25282528
if (auto jvp = attr->getJVP()) {
2529-
jvpName = addDeclBaseNameRef(jvp->Name.getBaseName());
2530-
jvpRef = addDeclRef(attr->getJVPFunction());
2529+
jvpName = S.addDeclBaseNameRef(jvp->Name.getBaseName());
2530+
jvpRef = S.addDeclRef(attr->getJVPFunction());
25312531
}
25322532
IdentifierID vjpName = 0;
25332533
DeclID vjpRef = 0;
25342534
if (auto vjp = attr->getVJP()) {
2535-
vjpName = addDeclBaseNameRef(vjp->Name.getBaseName());
2536-
vjpRef = addDeclRef(attr->getVJPFunction());
2535+
vjpName = S.addDeclBaseNameRef(vjp->Name.getBaseName());
2536+
vjpRef = S.addDeclRef(attr->getVJPFunction());
25372537
}
25382538

25392539
auto paramIndices = attr->getParameterIndices();
@@ -2543,10 +2543,10 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
25432543
indices.push_back(paramIndices->parameters[i]);
25442544

25452545
DifferentiableDeclAttrLayout::emitRecord(
2546-
Out, ScratchRecord, abbrCode, attr->isImplicit(),
2546+
S.Out, S.ScratchRecord, abbrCode, attr->isImplicit(),
25472547
jvpName, jvpRef, vjpName, vjpRef, indices);
25482548

2549-
writeGenericRequirements(attr->getRequirements(), DeclTypeAbbrCodes);
2549+
S.writeGenericRequirements(attr->getRequirements(), S.DeclTypeAbbrCodes);
25502550
return;
25512551
}
25522552
}

utils/update_checkout/update-checkout-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334
"llvm": "swift-DEVELOPMENT-SNAPSHOT-2019-05-26-a",
335335
"clang": "swift-DEVELOPMENT-SNAPSHOT-2019-05-26-a",
336336
"swift": "tensorflow",
337-
"lldb": "ad2a39579222f2969b90e8885a8818b91e77cbb5",
337+
"lldb": "3fcea0aa6f93985c20075daa978ef2da5f47215f",
338338
"cmark": "swift-DEVELOPMENT-SNAPSHOT-2019-05-26-a",
339339
"llbuild": "swift-DEVELOPMENT-SNAPSHOT-2019-05-26-a",
340340
"swiftpm": "swift-DEVELOPMENT-SNAPSHOT-2019-05-26-a",

0 commit comments

Comments
 (0)