Skip to content

Commit 69cec46

Browse files
committed
SIL/SILOptimizer: Fix unused variable warnings.
1 parent 433ff59 commit 69cec46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/swift/SIL/AddressWalker.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

lib/SILOptimizer/Mandatory/MoveOnlyObjectCheckerUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)