We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 423fef0 + d8c6f98 commit 4051ea2Copy full SHA for 4051ea2
lib/SIL/IR/TypeLowering.cpp
@@ -2742,6 +2742,7 @@ namespace {
2742
template <class LoadableLoweringClass>
2743
TypeLowering *handleAggregateByProperties(CanType type,
2744
RecursiveProperties props) {
2745
+ props = mergeHasPack(HasPack_t(type->hasAnyPack()), props);
2746
if (props.isAddressOnly()) {
2747
return handleAddressOnly(type, props);
2748
}
validation-test/IRGen/rdar152580661.swift
@@ -0,0 +1,14 @@
1
+// RUN: %target-swift-frontend %s -target %target-swift-5.9-abi-triple -emit-ir
2
+
3
+struct H<T> {
4
+ var packs: [Pack<T>] {
5
+ id(_packs)
6
+ }
7
+ let _packs: [Pack<T>]
8
+}
9
10
+struct Pack<each T> {}
11
12
+func id<T>(_ t: T) -> T {
13
+ return t
14
0 commit comments