File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -1393,12 +1393,13 @@ namespace {
1393
1393
1394
1394
// Create placeholders for the counts of the conditional requirements
1395
1395
// for each conditional conformance to a supressible protocol.
1396
- unsigned numProtocols = countBitsUsed (protocols. rawBits ()) ;
1396
+ unsigned numProtocols = 0 ;
1397
1397
using PlaceholderPosition =
1398
1398
ConstantAggregateBuilderBase::PlaceholderPosition;
1399
1399
SmallVector<PlaceholderPosition, 2 > countPlaceholders;
1400
- for (unsigned i : range (0 , numProtocols)) {
1401
- (void )i;
1400
+ for (auto kind : protocols) {
1401
+ (void )kind;
1402
+ numProtocols++;
1402
1403
countPlaceholders.push_back (
1403
1404
B.addPlaceholderWithSize (IGM.Int16Ty ));
1404
1405
}
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend %s -target %target-swift-5.9-abi-triple -emit-ir
2
+
3
+ public enum Enum < T : ~ Escapable> : ~ Escapable {
4
+ case none
5
+ case some( T )
6
+ }
7
+
8
+ extension Enum : Escapable where T: Escapable { }
You can’t perform that action at this time.
0 commit comments