From d8cea35360fcc9cc7566b15c92665e933ea43775 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Sat, 24 Feb 2018 06:57:47 +0000 Subject: [PATCH] Remove unused variable. We should be warning-free. llvm-svn: 326024 --- clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp index 618ddfe..54150ef 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp +++ b/clang/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"); -- 2.7.4