File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -314,12 +314,12 @@ TransitiveAddressWalker<Impl>::walk(SILValue projectedAddress) {
314314 callVisitUse (op);
315315 continue ;
316316 }
317- if (auto *mdi = dyn_cast <MarkDependenceInst>(user)) {
317+ if (isa <MarkDependenceInst>(user)) {
318318 // If we are the value use of a forwarding markdep, look through it.
319319 transitiveResultUses (op);
320320 continue ;
321321 }
322- if (auto *mdi = dyn_cast <MarkDependenceAddrInst>(user)) {
322+ if (isa <MarkDependenceAddrInst>(user)) {
323323 // The address operand is simply a leaf use.
324324 callVisitUse (op);
325325 continue ;
Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ void MoveOnlyObjectCheckerPImpl::check(
512512 // %1 = load_borrow %0
513513 // %2 = copy_value %1
514514 // %3 = mark_unresolved_non_copyable_value [no_consume_or_assign] %2
515- if (auto *lbi = dyn_cast <LoadBorrowInst>(orig)) {
515+ if (isa <LoadBorrowInst>(orig)) {
516516 for (auto *use : markedInst->getConsumingUses ()) {
517517 destroys.push_back (cast<DestroyValueInst>(use->getUser ()));
518518 }
You can’t perform that action at this time.
0 commit comments