File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1587,14 +1587,14 @@ 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 ())) {
1590
+ if (auto * ba = dyn_cast<BeginAccessInst>(op->getUser ())) {
1591
1591
if (ba->getEnforcement () == SILAccessEnforcement::Static
1592
1592
&& ba->hasNoNestedConflict ()) {
1593
1593
return TransitiveAddressWalkerTransitiveUseVisitation::OnlyUser;
1594
1594
}
1595
1595
}
1596
1596
// 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 ())) {
1598
1598
return TransitiveAddressWalkerTransitiveUseVisitation::BothUserAndUses;
1599
1599
}
1600
1600
return TransitiveAddressWalkerTransitiveUseVisitation::OnlyUses;
You can’t perform that action at this time.
0 commit comments