mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Remove ASTContext::ExternalDefinitions
Anything added here has a type checked body now, so it no longer serves any purpose.
This commit is contained in:
@@ -1307,11 +1307,6 @@ void TypeChecker::synthesizeWitnessAccessorsForStorage(
|
||||
assert(!accessor->hasBody());
|
||||
accessor->setBodySynthesizer(&synthesizeAccessorBody);
|
||||
|
||||
// Make sure SILGen emits the accessor; on-demand accessors have shared
|
||||
// linkage, and if its defined in a different translation unit from the
|
||||
// conformance we cannot simply generate an external declaration.
|
||||
Context.addExternalDecl(accessor);
|
||||
|
||||
maybeMarkTransparent(accessor, Context);
|
||||
DeclsToFinalize.insert(accessor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user