]> granicus.if.org Git - clang/commitdiff
Fix an unused variable warning; NFC
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 8 Mar 2018 02:15:12 +0000 (02:15 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 8 Mar 2018 02:15:12 +0000 (02:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326980 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ExprEngine.cpp

index 0a63fed20122565e557b099e5a12cfb8c09c2c96..fba2624d828ec2a038c1df13e6970784a51cefc6 100644 (file)
@@ -2466,7 +2466,7 @@ void ExprEngine::VisitCommonDeclRefExpr(const Expr *Ex, const NamedDecl *D,
                       ProgramPoint::PostLValueKind);
     return;
   }
-  if (const auto* BD = dyn_cast<BindingDecl>(D)) {
+  if (isa<BindingDecl>(D)) {
     // FIXME: proper support for bound declarations.
     // For now, let's just prevent crashing.
     return;