File tree 1 file changed +7
-4
lines changed
SwiftCompilerSources/Sources/SIL
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -539,10 +539,13 @@ public struct Builder {
539
539
public func createInitExistentialMetatype(
540
540
metatype: Value ,
541
541
existentialType: Type ,
542
- conformances: ConformanceArray ) -> InitExistentialMetatypeInst {
543
- let initExistential = bridged. createInitExistentialMetatype ( metatype. bridged,
544
- existentialType. bridged,
545
- conformances. bridged)
542
+ conformances: [ Conformance ]
543
+ ) -> InitExistentialMetatypeInst {
544
+ let initExistential = conformances. map { $0. bridged } . withBridgedArrayRef {
545
+ return bridged. createInitExistentialMetatype ( metatype. bridged,
546
+ existentialType. bridged,
547
+ BridgedConformanceArray ( pcArray: $0) )
548
+ }
546
549
return notifyNew ( initExistential. getAs ( InitExistentialMetatypeInst . self) )
547
550
}
548
551
You can’t perform that action at this time.
0 commit comments