File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -5549,6 +5549,7 @@ void Serializer::writeAllDeclsAndTypes() {
5549
5549
registerDeclTypeAbbr<ExistentialMetatypeTypeLayout>();
5550
5550
registerDeclTypeAbbr<PrimaryArchetypeTypeLayout>();
5551
5551
registerDeclTypeAbbr<OpenedArchetypeTypeLayout>();
5552
+ registerDeclTypeAbbr<ElementArchetypeTypeLayout>();
5552
5553
registerDeclTypeAbbr<OpaqueArchetypeTypeLayout>();
5553
5554
registerDeclTypeAbbr<PackArchetypeTypeLayout>();
5554
5555
registerDeclTypeAbbr<ProtocolCompositionTypeLayout>();
@@ -5568,6 +5569,7 @@ void Serializer::writeAllDeclsAndTypes() {
5568
5569
registerDeclTypeAbbr<DynamicSelfTypeLayout>();
5569
5570
registerDeclTypeAbbr<PackExpansionTypeLayout>();
5570
5571
registerDeclTypeAbbr<PackTypeLayout>();
5572
+ registerDeclTypeAbbr<SILPackTypeLayout>();
5571
5573
5572
5574
registerDeclTypeAbbr<ErrorFlagLayout>();
5573
5575
registerDeclTypeAbbr<ErrorTypeLayout>();
Original file line number Diff line number Diff line change @@ -3057,6 +3057,8 @@ void SILSerializer::writeSILBlock(const SILModule *SILMod) {
3057
3057
registerSILAbbr<SILInstLinearFunctionExtractLayout>();
3058
3058
registerSILAbbr<SILInstIncrementProfilerCounterLayout>();
3059
3059
registerSILAbbr<SILInstHasSymbolLayout>();
3060
+ registerSILAbbr<SILPackElementGetLayout>();
3061
+ registerSILAbbr<SILPackElementSetLayout>();
3060
3062
3061
3063
registerSILAbbr<VTableLayout>();
3062
3064
registerSILAbbr<VTableEntryLayout>();
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-frontend -emit-module %s -emit-module-path %t/pack_expansion_type.swiftmodule -DLIB
3
+ // RUN: %target-swift-frontend -emit-sil %s -I %t -DAPP
4
+
5
+ #if LIB
6
+
7
+ public func callee< each T > ( _: repeat each T ) { }
8
+
9
+ @_transparent public func caller< each T > ( _ t: repeat each T ) {
10
+ callee ( repeat [ each t] )
11
+ }
12
+
13
+ #elseif APP
14
+
15
+ import pack_expansion_type
16
+
17
+ caller ( 1 , " hi " , false )
18
+
19
+ #endif
You can’t perform that action at this time.
0 commit comments