mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[serialization] Don't bother serializing empty conformance lists.
If nothing in the module conforms to IntegerLiteralConvertible, we don't need a record for it. Swift SVN r7384
This commit is contained in:
@@ -2012,6 +2012,9 @@ static uint8_t getRawStableKnownProtocolKind(KnownProtocolKind kind) {
|
||||
static void
|
||||
writeKnownProtocolList(const index_block::KnownProtocolLayout &AdopterList,
|
||||
KnownProtocolKind kind, ArrayRef<DeclID> adopters) {
|
||||
if (adopters.empty())
|
||||
return;
|
||||
|
||||
SmallVector<uint32_t, 32> scratch;
|
||||
AdopterList.emit(scratch, getRawStableKnownProtocolKind(kind), adopters);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user