@@ -1114,7 +1114,7 @@ void SILGenModule::emitFunctionDefinition(SILDeclRef constant, SILFunction *f) {
1114
1114
}
1115
1115
case SILDeclRef::Kind::Deallocator: {
1116
1116
auto *dd = cast<DestructorDecl>(constant.getDecl ());
1117
- if (SILGenFunction::shouldEmitIsolatingDestructor (dd)) {
1117
+ if (needsIsolatingDestructor (dd)) {
1118
1118
auto loc = RegularLocation::getAutoGeneratedLocation (dd);
1119
1119
preEmitFunction (constant, f, loc);
1120
1120
PrettyStackTraceSILFunction X (" silgen emitIsolatingDestructor" , f);
@@ -1573,8 +1573,7 @@ bool SILGenModule::requiresIVarDestroyer(ClassDecl *cd) {
1573
1573
void SILGenModule::emitObjCAllocatorDestructor (ClassDecl *cd,
1574
1574
DestructorDecl *dd) {
1575
1575
1576
- const bool isActorIsolated =
1577
- SILGenFunction::shouldEmitIsolatingDestructor (dd);
1576
+ const bool isActorIsolated = needsIsolatingDestructor (dd);
1578
1577
1579
1578
// Emit the isolated deallocating destructor.
1580
1579
// If emitted, it implements actual deallocating and deallocating destructor
@@ -1663,7 +1662,7 @@ void SILGenModule::emitDestructor(ClassDecl *cd, DestructorDecl *dd) {
1663
1662
// Emit the isolated deallocating destructor.
1664
1663
// If emitted, it implements actual deallocating and deallocating destructor
1665
1664
// only switches executor
1666
- if (SILGenFunction::shouldEmitIsolatingDestructor (dd)) {
1665
+ if (needsIsolatingDestructor (dd)) {
1667
1666
SILDeclRef deallocator (dd, SILDeclRef::Kind::IsolatedDeallocator);
1668
1667
emitFunctionDefinition (deallocator,
1669
1668
getFunction (deallocator, ForDefinition));
0 commit comments