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) {
899
899
if (auto *isolatedArg = llvm::cast_or_null<SILFunctionArgument>(
900
900
fArg ->getFunction ()->maybeGetIsolatedArgument ())) {
901
901
auto astType = isolatedArg->getType ().getASTType ();
902
- if (auto *nomDecl = astType->lookThroughAllOptionalTypes ()->getAnyActor ()) {
902
+ if (astType->lookThroughAllOptionalTypes ()->getAnyActor ()) {
903
903
return SILIsolationInfo::getActorInstanceIsolated (fArg , isolatedArg);
904
904
}
905
905
}
Original file line number Diff line number Diff line change @@ -1182,8 +1182,6 @@ class Classification {
1182
1182
PotentialEffectReason reason, SourceLoc loc,
1183
1183
bool skipTypeCheck,
1184
1184
std::optional<EffectKind> onlyEffect = std::nullopt) {
1185
- ASTContext &ctx = declRef.getDecl ()->getASTContext ();
1186
-
1187
1185
Classification result;
1188
1186
bool considerAsync = !onlyEffect || *onlyEffect == EffectKind::Async;
1189
1187
bool considerThrows = !onlyEffect || *onlyEffect == EffectKind::Throws;
You can’t perform that action at this time.
0 commit comments