Skip to content

Commit 8624f13

Browse files
committed
[Gardening] MoveOnly: Annotated auto pointers.
1 parent 0f0147d commit 8624f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyAddressCheckerUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,14 +1587,14 @@ 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())) {
1590+
if (auto *ba = dyn_cast<BeginAccessInst>(op->getUser())) {
15911591
if (ba->getEnforcement() == SILAccessEnforcement::Static
15921592
&& ba->hasNoNestedConflict()) {
15931593
return TransitiveAddressWalkerTransitiveUseVisitation::OnlyUser;
15941594
}
15951595
}
15961596
// A drop_deinit consumes the deinit bit.
1597-
if (auto dd = dyn_cast<DropDeinitInst>(op->getUser())) {
1597+
if (auto *dd = dyn_cast<DropDeinitInst>(op->getUser())) {
15981598
return TransitiveAddressWalkerTransitiveUseVisitation::BothUserAndUses;
15991599
}
16001600
return TransitiveAddressWalkerTransitiveUseVisitation::OnlyUses;

0 commit comments

Comments
 (0)