mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Sink ModuleDecl's flags down into the shared Decl bitfields (#20051)
Saves 4 bytes per ModuleDecl. No functionality change.
This commit is contained in:
@@ -353,8 +353,8 @@ void SourceLookupCache::invalidate() {
|
||||
|
||||
ModuleDecl::ModuleDecl(Identifier name, ASTContext &ctx)
|
||||
: DeclContext(DeclContextKind::Module, nullptr),
|
||||
TypeDecl(DeclKind::Module, &ctx, name, SourceLoc(), { }),
|
||||
Flags() {
|
||||
TypeDecl(DeclKind::Module, &ctx, name, SourceLoc(), { }) {
|
||||
|
||||
ctx.addDestructorCleanup(*this);
|
||||
setImplicit();
|
||||
setInterfaceType(ModuleType::get(this));
|
||||
|
||||
Reference in New Issue
Block a user