We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f78872 + b44bc36 commit 8b1b6eaCopy full SHA for 8b1b6ea
lib/SILOptimizer/Mandatory/GuaranteedARCOpts.cpp
@@ -76,7 +76,9 @@ static bool couldReduceStrongRefcount(SILInstruction *Inst) {
76
isa<RetainValueInst>(Inst) || isa<UnownedRetainInst>(Inst) ||
77
isa<UnownedReleaseInst>(Inst) || isa<StrongRetainUnownedInst>(Inst) ||
78
isa<StoreWeakInst>(Inst) || isa<StrongRetainInst>(Inst) ||
79
- isa<AllocStackInst>(Inst) || isa<DeallocStackInst>(Inst))
+ isa<AllocStackInst>(Inst) || isa<DeallocStackInst>(Inst) ||
80
+ isa<BeginAccessInst>(Inst) || isa<EndAccessInst>(Inst) ||
81
+ isa<BeginUnpairedAccessInst>(Inst) || isa<EndUnpairedAccessInst>(Inst))
82
return false;
83
84
// Assign and copyaddr of trivial types cannot drop refcounts, and 'inits'
0 commit comments