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:
@@ -952,8 +952,7 @@ GenericEnvironment *ModuleFile::readGenericEnvironment(
|
||||
assert(!interfaceToArchetypeMap.empty() &&
|
||||
"no archetypes in generic function?");
|
||||
|
||||
return GenericEnvironment::get(getContext(), signature,
|
||||
interfaceToArchetypeMap);
|
||||
return GenericEnvironment::get(signature, interfaceToArchetypeMap);
|
||||
}
|
||||
|
||||
GenericEnvironment *ModuleFile::maybeReadGenericEnvironment() {
|
||||
|
||||
Reference in New Issue
Block a user