Skip to content

Commit 3c26321

Browse files
authored
Merge pull request #81173 from slavapestov/unused-vars
Squash warnings
2 parents 9d9ddf5 + fa6ec5a commit 3c26321

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/SILOptimizer/Utils/SILIsolationInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ SILIsolationInfo SILIsolationInfo::get(SILArgument *arg) {
899899
if (auto *isolatedArg = llvm::cast_or_null<SILFunctionArgument>(
900900
fArg->getFunction()->maybeGetIsolatedArgument())) {
901901
auto astType = isolatedArg->getType().getASTType();
902-
if (auto *nomDecl = astType->lookThroughAllOptionalTypes()->getAnyActor()) {
902+
if (astType->lookThroughAllOptionalTypes()->getAnyActor()) {
903903
return SILIsolationInfo::getActorInstanceIsolated(fArg, isolatedArg);
904904
}
905905
}

lib/Sema/TypeCheckEffects.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,8 +1182,6 @@ class Classification {
11821182
PotentialEffectReason reason, SourceLoc loc,
11831183
bool skipTypeCheck,
11841184
std::optional<EffectKind> onlyEffect = std::nullopt) {
1185-
ASTContext &ctx = declRef.getDecl()->getASTContext();
1186-
11871185
Classification result;
11881186
bool considerAsync = !onlyEffect || *onlyEffect == EffectKind::Async;
11891187
bool considerThrows = !onlyEffect || *onlyEffect == EffectKind::Throws;

0 commit comments

Comments
 (0)