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

This commit is contained in:
swift-ci
2019-09-26 12:50:17 -07:00
23 changed files with 608 additions and 87 deletions

View File

@@ -4602,8 +4602,15 @@ void Serializer::writeAST(ModuleOrSourceFile DC,
nextFile->getOpaqueReturnTypeDecls(opaqueReturnTypeDecls);
for (auto TD : localTypeDecls) {
// FIXME: We should delay parsing function bodies so these type decls
// don't even get added to the file.
if (TD->getDeclContext()->getInnermostSkippedFunctionContext())
continue;
hasLocalTypes = true;
Mangle::ASTMangler Mangler;
std::string MangledName =
evaluateOrDefault(M->getASTContext().evaluator,
MangleLocalTypeDeclRequest { TD },