Merge pull request #83711 from nate-chandler/cherrypick/release/6.2/rdar158083136

6.2: [InlineArray] Fix outlining metadata collection.
This commit is contained in:
nate-chandler
2025-08-27 12:57:54 -07:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

View File

@@ -180,6 +180,14 @@ public:
Element.destroy(IGF, elt[0], eltTy, isOutlined);
}, {address});
}
void collectMetadataForOutlining(OutliningMetadataCollector &collector,
SILType T) const override {
auto &IGM = collector.IGF.IGM;
auto elementTy = getElementSILType(IGM, T);
IGM.getTypeInfo(elementTy).collectMetadataForOutlining(collector,
elementTy);
}
};
template<typename BaseTypeInfo>

View File

@@ -0,0 +1,6 @@
// RUN: %target-swift-frontend %s -disable-availability-checking -emit-ir
func f<let i: Int, T>(
_: consuming InlineArray<i, (String, T)>
) {
}