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 21fa0b4 + dfcb5ee commit 17798c7Copy full SHA for 17798c7
lib/SIL/IR/TypeLowering.cpp
@@ -2733,6 +2733,7 @@ namespace {
2733
template <class LoadableLoweringClass>
2734
TypeLowering *handleAggregateByProperties(CanType type,
2735
RecursiveProperties props) {
2736
+ props = mergeHasPack(HasPack_t(type->hasAnyPack()), props);
2737
if (props.isAddressOnly()) {
2738
return handleAddressOnly(type, props);
2739
}
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