Skip to content

Commit 1d3925a

Browse files
committed
[Gardening] MoveOnly: Renamed variable.
1 parent 8624f13 commit 1d3925a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyAddressCheckerUtils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,9 +1587,9 @@ shouldVisitAsEndPointUse(Operand *op) {
15871587
// If an access is static and marked as "no nested conflict", we use that
15881588
// in switch codegen to mark an opaque sub-access that move-only checking
15891589
// 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()) {
15931593
return TransitiveAddressWalkerTransitiveUseVisitation::OnlyUser;
15941594
}
15951595
}

0 commit comments

Comments
 (0)