mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Serialize Differentiability WT index sorted
When there are sil_property and sil_differentiability_witness at once, serialized file couldn't be deserialized because it's index table is serialized un-sortedly but deserializer assumes that contents of table index are sorted. This patch fixes the un-sorted serialization and adds test case to ensure that table index contents can be deserialized
This commit is contained in:
@@ -856,6 +856,8 @@ void Serializer::writeBlockInfoBlock() {
|
||||
BLOCK_RECORD(sil_index_block, SIL_DEFAULT_WITNESS_TABLE_NAMES);
|
||||
BLOCK_RECORD(sil_index_block, SIL_DEFAULT_WITNESS_TABLE_OFFSETS);
|
||||
BLOCK_RECORD(sil_index_block, SIL_PROPERTY_OFFSETS);
|
||||
BLOCK_RECORD(sil_index_block, SIL_DIFFERENTIABILITY_WITNESS_NAMES);
|
||||
BLOCK_RECORD(sil_index_block, SIL_DIFFERENTIABILITY_WITNESS_OFFSETS);
|
||||
|
||||
#undef BLOCK
|
||||
#undef BLOCK_RECORD
|
||||
|
||||
Reference in New Issue
Block a user