mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Call setValidationStarted() on synthesized declarations
This avoids doing unnecessary work in validateDecl().
This commit is contained in:
@@ -352,6 +352,10 @@ ModuleDecl::ModuleDecl(Identifier name, ASTContext &ctx)
|
||||
ctx.addDestructorCleanup(*this);
|
||||
setImplicit();
|
||||
setInterfaceType(ModuleType::get(this));
|
||||
|
||||
// validateDecl() should return immediately given a ModuleDecl.
|
||||
setValidationStarted();
|
||||
|
||||
setAccess(AccessLevel::Public);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user