Skip to content

Commit dca3a93

Browse files
committed
[Gardening] MoveOnly: Replaced dyn_cast with isa.
1 parent 645f61d commit dca3a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyAddressCheckerUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ shouldVisitAsEndPointUse(Operand *op) {
15941594
}
15951595
}
15961596
// A drop_deinit consumes the deinit bit.
1597-
if (auto *dd = dyn_cast<DropDeinitInst>(op->getUser())) {
1597+
if (isa<DropDeinitInst>(op->getUser())) {
15981598
return TransitiveAddressWalkerTransitiveUseVisitation::BothUserAndUses;
15991599
}
16001600
return TransitiveAddressWalkerTransitiveUseVisitation::OnlyUses;

0 commit comments

Comments
 (0)