AST: Fix uninitialized ModuleDecl::DSOHandle

This is a regression from the following patch:

81267ce1db
This commit is contained in:
Slava Pestov
2016-01-19 17:12:59 -08:00
parent 985a6b333b
commit f57b26ba95

View File

@@ -339,7 +339,7 @@ void SourceLookupCache::invalidate() {
ModuleDecl::ModuleDecl(Identifier name, ASTContext &ctx)
: TypeDecl(DeclKind::Module, &ctx, name, SourceLoc(), { }),
DeclContext(DeclContextKind::Module, nullptr),
Flags({0, 0, 0}) {
Flags({0, 0, 0}), DSOHandle(nullptr) {
ctx.addDestructorCleanup(*this);
setImplicit();
setType(ModuleType::get(this));