mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Once we compute a generic signature from a generic signature builder, all queries involving that generic signature will go through a separate (canonicalized) builder, and the original builder can no longer be used. The canonicalization process then creates a new, effectively identical generic signature builder. How silly. Once we’ve computed the signature of a generic signature builder, “register” it with the ASTContext, allowing us to move the existing generic signature builder into place as the canonical generic signature builder. The builder requires minimal patching but is otherwise fully usable. Thanks to Slava Pestov for the idea!
68 KiB
68 KiB