Skip to content

Commit 887e9f0

Browse files
committed
updates specific to 5.5 branch for hop_to_executor injection in actor inits
1 parent 83b54f8 commit 887e9f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/Mandatory/DefiniteInitialization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ static void injectHopToExecutorAfter(SILLocation loc,
818818
if (needsBorrow)
819819
actor = b.createBeginBorrow(loc, actor);
820820

821-
b.createHopToExecutor(loc, actor, /*mandatory=*/false);
821+
b.createHopToExecutor(loc, actor);
822822

823823
if (needsBorrow)
824824
b.createEndBorrow(loc, actor);
@@ -967,7 +967,7 @@ void LifetimeChecker::injectActorHops() {
967967

968968
AvailabilitySet inSet(outSet.size());
969969
auto const &predecessors = block.getPredecessorBlocks();
970-
for (const auto &pred : predecessors)
970+
for (auto *pred : predecessors)
971971
inSet.mergeIn(getBlockInfo(pred).OutAvailability);
972972

973973
if (inSet.isAllYes()) {

0 commit comments

Comments
 (0)