From: Daniel Jasper Date: Sat, 24 Feb 2018 06:57:47 +0000 (+0000) Subject: Remove unused variable. We should be warning-free. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59aa6137453f5e232dbd15ccf2499fac8cd2818f;p=clang Remove unused variable. We should be warning-free. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326024 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp index 618ddfe705..54150ef2f2 100644 --- a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp +++ b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp @@ -440,7 +440,7 @@ private: os << Sep; FR->getDecl()->getDeclName().print(os, PP); Sep = "."; - } else if (auto *CXXR = dyn_cast(*I)) { + } else if (isa(*I)) { continue; // Just keep going up to the base region. } else { llvm_unreachable("Previous check has missed an unexpected region");