mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use ProtocolDescriptorRefs within the runtime representation of existential type metadata (TargetExistentialTypeMetadata) instead of bare protocol descriptor pointers. Start rolling out the use of ProtocolDescriptorRef in a few places in the runtime that touch this code. Note that we’re not yet establishing any strong invariants on the TargetProtocolDescriptorRef instances. While here, replace TargetExistentialTypeMetadata’s hand-rolled pointer arithmetic with swift::ABI::TrailingObjects and centralize knowledge of its layout better.
12 KiB
12 KiB