mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Stash an archetype builder in an "incomplete" generic environment.
This eliminates the really gross registration of archetype builders within the ASTContext, and is another little step toward lazily constructing archetypes.
This commit is contained in:
@@ -22,8 +22,9 @@ using namespace swift;
|
||||
|
||||
GenericEnvironment::GenericEnvironment(
|
||||
GenericSignature *signature,
|
||||
ArchetypeBuilder *builder,
|
||||
TypeSubstitutionMap interfaceToArchetypeMap)
|
||||
: Signature(signature)
|
||||
: Signature(signature), Builder(builder)
|
||||
{
|
||||
// Build a mapping in both directions, making sure to canonicalize the
|
||||
// interface type where it is used as a key, so that substitution can
|
||||
|
||||
Reference in New Issue
Block a user