File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,15 @@ void OutliningMetadataCollector::collectTypeMetadata(SILType ty) {
5252 }
5353 }
5454
55- if (!needsLayout) {
55+ collectTypeMetadataForLayout (ty);
56+ }
57+
58+ void OutliningMetadataCollector::collectTypeMetadataForLayout (SILType ty) {
59+ if (!needsLayout)
5660 return ;
57- }
61+
62+ auto astType = ty.getASTType ();
63+ auto &ti = IGF.IGM .getTypeInfoForLowered (astType);
5864
5965 // We don't need the metadata for fixed size types or types that are not ABI
6066 // accessible. Outlining will call the value witness of the enclosing type of
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ class OutliningMetadataCollector {
9090 Explosion ¶ms) const ;
9191
9292private:
93+ void collectTypeMetadataForLayout (SILType type);
9394 void collectFormalTypeMetadata (CanType type);
9495 void collectRepresentationTypeMetadata (SILType ty);
9596};
You can’t perform that action at this time.
0 commit comments