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) {
52
52
}
53
53
}
54
54
55
- if (!needsLayout) {
55
+ collectTypeMetadataForLayout (ty);
56
+ }
57
+
58
+ void OutliningMetadataCollector::collectTypeMetadataForLayout (SILType ty) {
59
+ if (!needsLayout)
56
60
return ;
57
- }
61
+
62
+ auto astType = ty.getASTType ();
63
+ auto &ti = IGF.IGM .getTypeInfoForLowered (astType);
58
64
59
65
// We don't need the metadata for fixed size types or types that are not ABI
60
66
// 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 {
90
90
Explosion ¶ms) const ;
91
91
92
92
private:
93
+ void collectTypeMetadataForLayout (SILType type);
93
94
void collectFormalTypeMetadata (CanType type);
94
95
void collectRepresentationTypeMetadata (SILType ty);
95
96
};
You can’t perform that action at this time.
0 commit comments