mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The deserialization of the type witnesses for a normal protocol conformance is crucial to the usability of said conformance. Deserializing the value witnesses first can fail if they somehow rely on the type witnesses (e.g., through a recursive conformance). As a stop-gap, deserialize and record type witnesses *first*, then deserialize value witnesses afterward. A longer-term solution would make deserialization of the normal protocol conformance far more lazy. Fixes SR-6522 / rdar://problem/35830641, a merge-modules crasher in a nontrivial project.
47 KiB
47 KiB