Skip to content

Commit 4c34f08

Browse files
committed
SILOptimizer: Fix an unused variable warning.
1 parent 7435a03 commit 4c34f08

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
@@ -900,7 +900,7 @@ SILIsolationInfo SILIsolationInfo::get(SILArgument *arg) {
900900
if (auto *isolatedArg = llvm::cast_or_null<SILFunctionArgument>(
901901
fArg->getFunction()->maybeGetIsolatedArgument())) {
902902
auto astType = isolatedArg->getType().getASTType();
903-
if (auto *nomDecl = astType->lookThroughAllOptionalTypes()->getAnyActor()) {
903+
if (astType->lookThroughAllOptionalTypes()->getAnyActor()) {
904904
return SILIsolationInfo::getActorInstanceIsolated(fArg, isolatedArg);
905905
}
906906
}

0 commit comments

Comments
 (0)