mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
902ea27a67
All Swift-defined nominal types have their runtime metadata recorded in a special section, so it can be found later. This recording is suppressed when that type is stated to conform to a protocol, because the runtime can find nominal types in either place. Imported types would get their conformances recorded, but would not get recorded in the runtime metadata record otherwose. Therefore, the runtime would not be able to find such types by name. For any foreign type whose metadata we emit, make sure that metadata can be found by a runtime lookup.