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
348
348
unsigned BlockListChangeIdx = 0 ;
349
349
350
350
// / The isolation of this function.
351
- std::optional< ActorIsolation> actorIsolation;
351
+ ActorIsolation actorIsolation = ActorIsolation::forUnspecified() ;
352
352
353
353
// / The function's bare attribute. Bare means that the function is SIL-only
354
354
// / and does not require debug info.
@@ -1374,9 +1374,7 @@ class SILFunction
1374
1374
actorIsolation = newActorIsolation;
1375
1375
}
1376
1376
1377
- std::optional<ActorIsolation> getActorIsolation () const {
1378
- return actorIsolation;
1379
- }
1377
+ ActorIsolation getActorIsolation () const { return actorIsolation; }
1380
1378
1381
1379
// ===--------------------------------------------------------------------===//
1382
1380
// Block List Access
Original file line number Diff line number Diff line change @@ -901,8 +901,8 @@ struct PartitionOpEvaluator {
901
901
// our transferring operand. If so, we can squelch this.
902
902
if (auto functionIsolation =
903
903
transferringOp->getUser ()->getFunction ()->getActorIsolation ()) {
904
- if (functionIsolation-> isActorIsolated () &&
905
- SILIsolationInfo::getActorIsolated (* functionIsolation) ==
904
+ if (functionIsolation. isActorIsolated () &&
905
+ SILIsolationInfo::getActorIsolated (functionIsolation) ==
906
906
SILIsolationInfo::get (transferringOp->getUser ()))
907
907
return ;
908
908
}
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ SILIsolationInfo SILIsolationInfo::get(SILFunctionArgument *arg) {
91
91
// should be marked as actor isolated.
92
92
if (auto *self = arg->getFunction ()->maybeGetSelfArgument ()) {
93
93
if (auto functionIsolation = arg->getFunction ()->getActorIsolation ()) {
94
- if (functionIsolation-> isActorIsolated ()) {
94
+ if (functionIsolation. isActorIsolated ()) {
95
95
if (auto *nomDecl = self->getType ().getNominalOrBoundGenericNominal ()) {
96
96
if (auto isolationInfo =
97
97
SILIsolationInfo::getActorIsolated (nomDecl)) {
You can’t perform that action at this time.
0 commit comments