Skip to content

Commit 8fa4fd7

Browse files
authored
Merge pull request swiftlang#77256 from kubamracek/builtin-fixed-array-serialization
Fix missing serialization type registration code on Builtin.FixedArray
2 parents e8d9804 + 350fc38 commit 8fa4fd7

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/Serialization/ModuleFormat.h

Lines changed: 1 addition & 1 deletion
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 = 898; // interface-compiler-version
61+
const uint16_t SWIFTMODULE_VERSION_MINOR = 899; // Builtin.FixedArray serialize
6262

6363
/// A standard hash seed used for all string hashes in a serialized module.
6464
///

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6134,6 +6134,7 @@ void Serializer::writeAllDeclsAndTypes() {
61346134
BCBlockRAII restoreBlock(Out, DECLS_AND_TYPES_BLOCK_ID, 9);
61356135
using namespace decls_block;
61366136
registerDeclTypeAbbr<BuiltinAliasTypeLayout>();
6137+
registerDeclTypeAbbr<BuiltinFixedArrayTypeLayout>();
61376138
registerDeclTypeAbbr<TypeAliasTypeLayout>();
61386139
registerDeclTypeAbbr<GenericTypeParamDeclLayout>();
61396140
registerDeclTypeAbbr<AssociatedTypeDeclLayout>();

test/Prototypes/Vector.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-run-simple-swift(-target %module-target-future -enable-experimental-feature ValueGenerics -enable-experimental-feature BuiltinModule -Xfrontend -disable-experimental-parser-round-trip) | %FileCheck %s
2+
// RUN: %target-swift-frontend -target %module-target-future -enable-experimental-feature ValueGenerics -enable-experimental-feature BuiltinModule -disable-experimental-parser-round-trip -emit-module %s -o %t/Vector.swiftmodule
23

34
// REQUIRES: executable_test
45
// UNSUPPORTED: use_os_stdlib

0 commit comments

Comments
 (0)