r326024 - Remove unused variable. We should be warning-free.

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 22:57:48 PST 2018


Author: djasper
Date: Fri Feb 23 22:57:47 2018
New Revision: 326024

URL: http://llvm.org/viewvc/llvm-project?rev=326024&view=rev
Log:
Remove unused variable. We should be warning-free.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp?rev=326024&r1=326023&r2=326024&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp Fri Feb 23 22:57:47 2018
@@ -440,7 +440,7 @@ private:
         os << Sep;
         FR->getDecl()->getDeclName().print(os, PP);
         Sep = ".";
-      } else if (auto *CXXR = dyn_cast<CXXBaseObjectRegion>(*I)) {
+      } else if (isa<CXXBaseObjectRegion>(*I)) {
         continue; // Just keep going up to the base region.
       } else {
         llvm_unreachable("Previous check has missed an unexpected region");




More information about the cfe-commits mailing list