Skip to content

Commit 432e4dc

Browse files
committed
Serialization: Remove Swift3Inferred field from @objc attr.
1 parent 42aab74 commit 432e4dc

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

lib/Serialization/Deserialization.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5540,12 +5540,10 @@ llvm::Error DeclDeserializer::deserializeDeclCommon() {
55405540
case decls_block::ObjC_DECL_ATTR: {
55415541
bool isImplicit;
55425542
bool isImplicitName;
5543-
bool isSwift3Inferred; // FIXME: Remove, unused
55445543
uint64_t numArgs;
55455544
ArrayRef<uint64_t> rawPieceIDs;
55465545
serialization::decls_block::ObjCDeclAttrLayout::readRecord(
5547-
scratch, isImplicit, isSwift3Inferred, isImplicitName, numArgs,
5548-
rawPieceIDs);
5546+
scratch, isImplicit, isImplicitName, numArgs, rawPieceIDs);
55495547

55505548
SmallVector<Identifier, 4> pieces;
55515549
for (auto pieceID : rawPieceIDs)

lib/Serialization/ModuleFormat.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
5858
/// describe what change you made. The content of this comment isn't important;
5959
/// it just ensures a conflict if two people change the module format.
6060
/// Don't worry about adhering to the 80-column limit for this line.
61-
const uint16_t SWIFTMODULE_VERSION_MINOR = 834; // relative paths to module-defining .swiftinterface files
61+
const uint16_t SWIFTMODULE_VERSION_MINOR = 835; // remove Swift3Inferred
6262

6363
/// A standard hash seed used for all string hashes in a serialized module.
6464
///
@@ -2243,7 +2243,6 @@ namespace decls_block {
22432243
using ObjCDeclAttrLayout = BCRecordLayout<
22442244
ObjC_DECL_ATTR,
22452245
BCFixed<1>, // implicit flag
2246-
BCFixed<1>, // Swift 3 inferred
22472246
BCFixed<1>, // implicit name flag
22482247
BCVBR<4>, // # of arguments (+1) or zero if no name
22492248
BCArray<IdentifierIDField>

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2898,7 +2898,7 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
28982898
}
28992899
auto abbrCode = S.DeclTypeAbbrCodes[ObjCDeclAttrLayout::Code];
29002900
ObjCDeclAttrLayout::emitRecord(
2901-
S.Out, S.ScratchRecord, abbrCode, theAttr->isImplicit(), false,
2901+
S.Out, S.ScratchRecord, abbrCode, theAttr->isImplicit(),
29022902
theAttr->isNameImplicit(), numArgs, pieces);
29032903
return;
29042904
}

0 commit comments

Comments
 (0)