File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments