Merge remote-tracking branch 'apple/master' into master-rebranch

This commit is contained in:
Xi Ge
2020-09-02 18:36:37 -07:00
74 changed files with 1040 additions and 674 deletions

View File

@@ -991,10 +991,8 @@ SerializedModuleLoaderBase::loadModule(SourceLoc importLoc,
Ctx.addLoadedModule(M);
SWIFT_DEFER { M->setHasResolvedImports(); };
StringRef moduleInterfacePathStr =
Ctx.AllocateCopy(moduleInterfacePath.str());
auto *file =
loadAST(*M, moduleID.Loc, moduleInterfacePathStr,
loadAST(*M, moduleID.Loc, moduleInterfacePath,
std::move(moduleInputBuffer), std::move(moduleDocInputBuffer),
std::move(moduleSourceInfoInputBuffer), isFramework);
if (file) {