Skip to content

Commit e9070cf

Browse files
committed
Sema: Remove unused variable
1 parent 7f8c4e0 commit e9070cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/MiscDiagnostics.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4005,8 +4005,7 @@ VarDeclUsageChecker::~VarDeclUsageChecker() {
40054005
if (!(access & RK_Defined))
40064006
continue;
40074007

4008-
if (auto *caseStmt =
4009-
dyn_cast_or_null<CaseStmt>(var->getRecursiveParentPatternStmt())) {
4008+
if (isa_and_nonnull<CaseStmt>(var->getRecursiveParentPatternStmt())) {
40104009
// Only diagnose for the parent-most VarDecl.
40114010
if (var->getParentVarDecl())
40124011
continue;

0 commit comments

Comments
 (0)