File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1587,9 +1587,9 @@ shouldVisitAsEndPointUse(Operand *op) {
1587
1587
// If an access is static and marked as "no nested conflict", we use that
1588
1588
// in switch codegen to mark an opaque sub-access that move-only checking
1589
1589
// should not look through.
1590
- if (auto *ba = dyn_cast<BeginAccessInst>(op->getUser ())) {
1591
- if (ba ->getEnforcement () == SILAccessEnforcement::Static
1592
- && ba ->hasNoNestedConflict ()) {
1590
+ if (auto *bai = dyn_cast<BeginAccessInst>(op->getUser ())) {
1591
+ if (bai ->getEnforcement () == SILAccessEnforcement::Static &&
1592
+ bai ->hasNoNestedConflict ()) {
1593
1593
return TransitiveAddressWalkerTransitiveUseVisitation::OnlyUser;
1594
1594
}
1595
1595
}
You can’t perform that action at this time.
0 commit comments