mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user