[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:
Jordan Rose
2018-10-25 15:53:51 -07:00
committed by GitHub
parent c3a9498f03
commit 7cad780701
3 changed files with 29 additions and 19 deletions

View File

@@ -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));