Skip to content

Commit 5973a27

Browse files
committed
SILOptimizer: Fix some unused variable warnings
1 parent 06e3c9c commit 5973a27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/SILOptimizer/Mandatory/AccessEnforcementSelection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ void SelectEnforcement::analyzeProjection(ProjectBoxInst *projection) {
255255

256256
continue;
257257
}
258-
if (auto *PAI = dyn_cast<PartialApplyInst>(user))
258+
if (isa<PartialApplyInst>(user))
259259
Captures.emplace_back(AddressCapture(*use));
260260
}
261261
}

lib/SILOptimizer/Utils/Local.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ optimizeBridgedObjCToSwiftCast(SILInstruction *Inst,
15171517
auto *AI = Builder.createApply(Loc, FuncRef, Subs, Args, false);
15181518

15191519
// If the source of a cast should be destroyed, emit a release.
1520-
if (auto *UCCAI = dyn_cast<UnconditionalCheckedCastAddrInst>(Inst)) {
1520+
if (isa<UnconditionalCheckedCastAddrInst>(Inst)) {
15211521
Builder.createReleaseValue(Loc, SrcOp, Builder.getDefaultAtomicity());
15221522
}
15231523

0 commit comments

Comments
 (0)