mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #83711 from nate-chandler/cherrypick/release/6.2/rdar158083136
6.2: [InlineArray] Fix outlining metadata collection.
This commit is contained in:
@@ -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>
|
||||
|
||||
6
validation-test/IRGen/rdar158083136.swift
Normal file
6
validation-test/IRGen/rdar158083136.swift
Normal 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)>
|
||||
) {
|
||||
}
|
||||
Reference in New Issue
Block a user