Skip to content

Commit 76e7fa9

Browse files
committed
Serialization: Move the distribution channel to the end of the control block enum
1 parent 9779806 commit 76e7fa9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/Serialization/ModuleFormat.h

Lines changed: 7 additions & 7 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 = 874; // SDKVersion
61+
const uint16_t SWIFTMODULE_VERSION_MINOR = 875; // Reorder control block enum
6262

6363
/// A standard hash seed used for all string hashes in a serialized module.
6464
///
@@ -863,9 +863,9 @@ namespace control_block {
863863
SDK_NAME,
864864
SDK_VERSION,
865865
REVISION,
866-
CHANNEL,
867866
IS_OSSA,
868867
ALLOWABLE_CLIENT_NAME,
868+
CHANNEL,
869869
};
870870

871871
using MetadataLayout = BCRecordLayout<
@@ -906,11 +906,6 @@ namespace control_block {
906906
BCBlob
907907
>;
908908

909-
using ChannelLayout = BCRecordLayout<
910-
CHANNEL,
911-
BCBlob
912-
>;
913-
914909
using IsOSSALayout = BCRecordLayout<
915910
IS_OSSA,
916911
BCFixed<1>
@@ -920,6 +915,11 @@ namespace control_block {
920915
ALLOWABLE_CLIENT_NAME,
921916
BCBlob
922917
>;
918+
919+
using ChannelLayout = BCRecordLayout<
920+
CHANNEL,
921+
BCBlob
922+
>;
923923
}
924924

925925
/// The record types within the options block (a sub-block of the control

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,9 +836,9 @@ void Serializer::writeBlockInfoBlock() {
836836
BLOCK_RECORD(control_block, SDK_NAME);
837837
BLOCK_RECORD(control_block, SDK_VERSION);
838838
BLOCK_RECORD(control_block, REVISION);
839-
BLOCK_RECORD(control_block, CHANNEL);
840839
BLOCK_RECORD(control_block, IS_OSSA);
841840
BLOCK_RECORD(control_block, ALLOWABLE_CLIENT_NAME);
841+
BLOCK_RECORD(control_block, CHANNEL);
842842

843843
BLOCK(OPTIONS_BLOCK);
844844
BLOCK_RECORD(options_block, SDK_PATH);

0 commit comments

Comments
 (0)