]> granicus.if.org Git - clang/commitdiff
Remove unused variable. We should be warning-free.
authorDaniel Jasper <djasper@google.com>
Sat, 24 Feb 2018 06:57:47 +0000 (06:57 +0000)
committerDaniel Jasper <djasper@google.com>
Sat, 24 Feb 2018 06:57:47 +0000 (06:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326024 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/BugReporterVisitors.cpp

index 618ddfe705f6408f741b50291fdbdcedfcfc1c76..54150ef2f25438b7e099f4618242b7b4653937f2 100644 (file)
@@ -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");