Skip to content

Commit 8b1b6ea

Browse files
authored
Merge pull request #10104 from atrick/access_dynamic
2 parents 0f78872 + b44bc36 commit 8b1b6ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/SILOptimizer/Mandatory/GuaranteedARCOpts.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ static bool couldReduceStrongRefcount(SILInstruction *Inst) {
7676
isa<RetainValueInst>(Inst) || isa<UnownedRetainInst>(Inst) ||
7777
isa<UnownedReleaseInst>(Inst) || isa<StrongRetainUnownedInst>(Inst) ||
7878
isa<StoreWeakInst>(Inst) || isa<StrongRetainInst>(Inst) ||
79-
isa<AllocStackInst>(Inst) || isa<DeallocStackInst>(Inst))
79+
isa<AllocStackInst>(Inst) || isa<DeallocStackInst>(Inst) ||
80+
isa<BeginAccessInst>(Inst) || isa<EndAccessInst>(Inst) ||
81+
isa<BeginUnpairedAccessInst>(Inst) || isa<EndUnpairedAccessInst>(Inst))
8082
return false;
8183

8284
// Assign and copyaddr of trivial types cannot drop refcounts, and 'inits'

0 commit comments

Comments
 (0)