Merge remote-tracking branch 'upstream/master' into master-next

This commit is contained in:
Arnold Schwaighofer
2019-08-26 13:30:41 -07:00
57 changed files with 705 additions and 502 deletions

View File

@@ -268,6 +268,8 @@ static bool emitLoadedModuleTraceIfNeeded(ModuleDecl *mainModule,
for (auto &module : ctxt.LoadedModules) {
ModuleDecl *loadedDecl = module.second;
assert(loadedDecl && "Expected loaded module to be non-null.");
if (loadedDecl == mainModule)
continue;
assert(!loadedDecl->getModuleFilename().empty()
&& "Don't know how to handle modules with empty names.");
pathToModuleDecl.insert(