mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Switch one entry point in the runtime (swift_getExistentialTypeMetadata) to use ProtocolDescriptorRef rather than a protocol descriptor. Update IRGen to produce ProtocolDescriptorRef instances for its calls, setting the discriminator bit appropriately. Within the runtime, verify that all instances of ProtocolDescriptorRef have the right layout, i.e., the discriminator bit is set for @objc protocols but not Swift protocols.
20 KiB
20 KiB