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

This commit is contained in:
swift-ci
2019-11-11 14:50:04 -08:00
12 changed files with 32 additions and 77 deletions

View File

@@ -1368,12 +1368,6 @@ bool ASTContext::hasArrayLiteralIntrinsics() const {
&& getDeallocateUninitializedArray();
}
void ASTContext::addSynthesizedDecl(Decl *decl) {
auto *fileUnit = decl->getDeclContext()->getModuleScopeContext();
if (auto *sf = dyn_cast<SourceFile>(fileUnit))
sf->SynthesizedDecls.push_back(decl);
}
void ASTContext::addCleanup(std::function<void(void)> cleanup) {
getImpl().Cleanups.push_back(std::move(cleanup));
}