We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f8c4e0 commit e9070cfCopy full SHA for e9070cf
lib/Sema/MiscDiagnostics.cpp
@@ -4005,8 +4005,7 @@ VarDeclUsageChecker::~VarDeclUsageChecker() {
4005
if (!(access & RK_Defined))
4006
continue;
4007
4008
- if (auto *caseStmt =
4009
- dyn_cast_or_null<CaseStmt>(var->getRecursiveParentPatternStmt())) {
+ if (isa_and_nonnull<CaseStmt>(var->getRecursiveParentPatternStmt())) {
4010
// Only diagnose for the parent-most VarDecl.
4011
if (var->getParentVarDecl())
4012
0 commit comments