File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -878,6 +878,8 @@ class SILType {
878
878
879
879
bool isMarkedAsImmortal () const ;
880
880
881
+ bool isActor () const { return getASTType ()->isActorType (); }
882
+
881
883
ProtocolConformanceRef conformsToProtocol (SILFunction *fn,
882
884
ProtocolDecl *protocol) const ;
883
885
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ class PartitionOpTranslator {
385
385
auto *svi = cast<SingleValueInstruction>(iter.first ->first );
386
386
auto storage = AccessStorageWithBase::compute (svi->getOperand (0 ));
387
387
if (storage.storage && isa<RefElementAddrInst>(storage.base )) {
388
- if (storage.storage .getRoot ()->getType ().getASTType ()-> isActorType ()) {
388
+ if (storage.storage .getRoot ()->getType ().isActor ()) {
389
389
self->neverConsumedValueIDs .push_back (iter.first ->second .getID ());
390
390
}
391
391
}
@@ -606,7 +606,7 @@ class PartitionOpTranslator {
606
606
if (auto fas = FullApplySite::isa (applyInst)) {
607
607
if (fas.hasSelfArgument ()) {
608
608
if (auto self = fas.getSelfArgument ()) {
609
- hasActorSelf = self->getType ().getASTType ()-> isActorType ();
609
+ hasActorSelf = self->getType ().isActor ();
610
610
}
611
611
}
612
612
}
You can’t perform that action at this time.
0 commit comments