From: George Burgess IV Date: Thu, 8 Mar 2018 02:15:12 +0000 (+0000) Subject: Fix an unused variable warning; NFC X-Git-Tag: llvmorg-7.0.0-rc1~11143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4f47b4c63dd99508410087f5b6643f3e668ed23;p=platform%2Fupstream%2Fllvm.git Fix an unused variable warning; NFC llvm-svn: 326980 --- diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index 0a63fed..fba2624 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -2466,7 +2466,7 @@ void ExprEngine::VisitCommonDeclRefExpr(const Expr *Ex, const NamedDecl *D, ProgramPoint::PostLValueKind); return; } - if (const auto* BD = dyn_cast(D)) { + if (isa(D)) { // FIXME: proper support for bound declarations. // For now, let's just prevent crashing. return;