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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user