Skip to content

Commit 3229ede

Browse files
committed
SIL: Fix unused variable warning
1 parent 86c30d6 commit 3229ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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
}

0 commit comments

Comments
 (0)