mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Merge pull request #1725 from atrick/specialize"
Temporarily reverting @_specialize because stdlib unit tests are failing on an internal branch during deserialization. This reverts commite2c43cfe14, reversing changes made to9078011f93.
This commit is contained in:
@@ -497,7 +497,6 @@ void Serializer::writeBlockInfoBlock() {
|
||||
BLOCK_RECORD(sil_block, SIL_DEFAULT_WITNESS_TABLE_NO_ENTRY);
|
||||
BLOCK_RECORD(sil_block, SIL_GENERIC_OUTER_PARAMS);
|
||||
BLOCK_RECORD(sil_block, SIL_INST_WITNESS_METHOD);
|
||||
BLOCK_RECORD(sil_block, SIL_SPECIALIZE_ATTR);
|
||||
|
||||
// These layouts can exist in both decl blocks and sil blocks.
|
||||
#define BLOCK_RECORD_WITH_NAMESPACE(K, X) emitRecordID(Out, X, #X, nameBuffer)
|
||||
@@ -1800,15 +1799,6 @@ void Serializer::writeDeclAttribute(const DeclAttribute *DA) {
|
||||
blob);
|
||||
return;
|
||||
}
|
||||
case DAK_Specialize: {
|
||||
auto abbrCode = DeclTypeAbbrCodes[SpecializeDeclAttrLayout::Code];
|
||||
SmallVector<TypeID, 8> typeIDs;
|
||||
for (auto tl : cast<SpecializeAttr>(DA)->getTypeLocs())
|
||||
typeIDs.push_back(addTypeRef(tl.getType()));
|
||||
|
||||
SpecializeDeclAttrLayout::emitRecord(Out, ScratchRecord, abbrCode, typeIDs);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3005,7 +2995,7 @@ void Serializer::writeType(Type ty) {
|
||||
fnTy->isNoReturn(),
|
||||
fnTy->throws(),
|
||||
genericParams);
|
||||
|
||||
|
||||
// Write requirements.
|
||||
writeRequirements(fnTy->getRequirements());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user