mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #71796 from xedin/make-dist-new-requirements-conditionally-available
[Distributed] Make new protocol requirements conditionally available
This commit is contained in:
@@ -152,6 +152,7 @@ SILModule::~SILModule() {
|
||||
for (SILFunction &F : *this) {
|
||||
F.dropAllReferences();
|
||||
F.dropDynamicallyReplacedFunction();
|
||||
F.dropReferencedAdHocRequirementWitnessFunction();
|
||||
F.clearSpecializeAttrs();
|
||||
}
|
||||
|
||||
@@ -430,6 +431,7 @@ void SILModule::eraseFunction(SILFunction *F) {
|
||||
// (References are not needed anymore.)
|
||||
F->clear();
|
||||
F->dropDynamicallyReplacedFunction();
|
||||
F->dropReferencedAdHocRequirementWitnessFunction();
|
||||
// Drop references for any _specialize(target:) functions.
|
||||
F->clearSpecializeAttrs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user