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) {
314
314
callVisitUse (op);
315
315
continue ;
316
316
}
317
- if (auto *mdi = dyn_cast <MarkDependenceInst>(user)) {
317
+ if (isa <MarkDependenceInst>(user)) {
318
318
// If we are the value use of a forwarding markdep, look through it.
319
319
transitiveResultUses (op);
320
320
continue ;
321
321
}
322
- if (auto *mdi = dyn_cast <MarkDependenceAddrInst>(user)) {
322
+ if (isa <MarkDependenceAddrInst>(user)) {
323
323
// The address operand is simply a leaf use.
324
324
callVisitUse (op);
325
325
continue ;
Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ void MoveOnlyObjectCheckerPImpl::check(
512
512
// %1 = load_borrow %0
513
513
// %2 = copy_value %1
514
514
// %3 = mark_unresolved_non_copyable_value [no_consume_or_assign] %2
515
- if (auto *lbi = dyn_cast <LoadBorrowInst>(orig)) {
515
+ if (isa <LoadBorrowInst>(orig)) {
516
516
for (auto *use : markedInst->getConsumingUses ()) {
517
517
destroys.push_back (cast<DestroyValueInst>(use->getUser ()));
518
518
}
You can’t perform that action at this time.
0 commit comments