File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ class SILFunction
348348 unsigned BlockListChangeIdx = 0 ;
349349
350350 // / The isolation of this function.
351- std::optional< ActorIsolation> actorIsolation;
351+ ActorIsolation actorIsolation = ActorIsolation::forUnspecified() ;
352352
353353 // / The function's bare attribute. Bare means that the function is SIL-only
354354 // / and does not require debug info.
@@ -1374,9 +1374,7 @@ class SILFunction
13741374 actorIsolation = newActorIsolation;
13751375 }
13761376
1377- std::optional<ActorIsolation> getActorIsolation () const {
1378- return actorIsolation;
1379- }
1377+ ActorIsolation getActorIsolation () const { return actorIsolation; }
13801378
13811379 // ===--------------------------------------------------------------------===//
13821380 // Block List Access
Original file line number Diff line number Diff line change @@ -901,8 +901,8 @@ struct PartitionOpEvaluator {
901901 // our transferring operand. If so, we can squelch this.
902902 if (auto functionIsolation =
903903 transferringOp->getUser ()->getFunction ()->getActorIsolation ()) {
904- if (functionIsolation-> isActorIsolated () &&
905- SILIsolationInfo::getActorIsolated (* functionIsolation) ==
904+ if (functionIsolation. isActorIsolated () &&
905+ SILIsolationInfo::getActorIsolated (functionIsolation) ==
906906 SILIsolationInfo::get (transferringOp->getUser ()))
907907 return ;
908908 }
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ SILIsolationInfo SILIsolationInfo::get(SILFunctionArgument *arg) {
9191 // should be marked as actor isolated.
9292 if (auto *self = arg->getFunction ()->maybeGetSelfArgument ()) {
9393 if (auto functionIsolation = arg->getFunction ()->getActorIsolation ()) {
94- if (functionIsolation-> isActorIsolated ()) {
94+ if (functionIsolation. isActorIsolated ()) {
9595 if (auto *nomDecl = self->getType ().getNominalOrBoundGenericNominal ()) {
9696 if (auto isolationInfo =
9797 SILIsolationInfo::getActorIsolated (nomDecl)) {
You can’t perform that action at this time.
0 commit comments