Skip to content

Commit b7b83d2

Browse files
nickolas-pohiletsktoso
authored andcommitted
Fixed incorrectly resolved merge conflict in the SILGen.cpp
1 parent 08c8393 commit b7b83d2

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

lib/SILGen/SILGen.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -762,12 +762,9 @@ SILFunction *SILGenModule::getFunction(SILDeclRef constant,
762762
// destroyer.
763763
F->setActorIsolation(ActorIsolation::forNonisolated(false));
764764
} else {
765-
// If we have global actor isolation for our constant, put the isolation
766-
// onto the function.
767-
if (auto isolation =
768-
getActorIsolationOfContext(constant.getInnermostDeclContext())) {
769-
F->setActorIsolation(isolation);
770-
}
765+
// If we have global actor isolation for our constant, put the isolation onto
766+
// the function.
767+
F->setActorIsolation(getActorIsolationOfContext(constant.getInnermostDeclContext()));
771768
}
772769

773770
assert(F && "SILFunction should have been defined");
@@ -1132,7 +1129,6 @@ void SILGenModule::emitFunctionDefinition(SILDeclRef constant, SILFunction *f) {
11321129
}
11331130
case SILDeclRef::Kind::Deallocator: {
11341131
auto *dd = cast<DestructorDecl>(constant.getDecl());
1135-
auto *nom = dd->getDeclContext()->getSelfNominalTypeDecl();
11361132

11371133
if (needsIsolatingDestructor(dd)) {
11381134
auto loc = RegularLocation::getAutoGeneratedLocation(dd);
@@ -1266,10 +1262,7 @@ void SILGenModule::preEmitFunction(SILDeclRef constant, SILFunction *F,
12661262
} else {
12671263
// If we have global actor isolation for our constant, put the isolation
12681264
// onto the function.
1269-
if (auto isolation =
1270-
getActorIsolationOfContext(constant.getInnermostDeclContext())) {
1271-
F->setActorIsolation(isolation);
1272-
}
1265+
F->setActorIsolation(getActorIsolationOfContext(constant.getInnermostDeclContext()));
12731266
}
12741267

12751268
// Create a debug scope for the function using astNode as source location.

0 commit comments

Comments
 (0)