[clang-tools-extra] r336329 - Fix -Wunused-variable warning. NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 5 02:35:12 PDT 2018


Author: rksimon
Date: Thu Jul  5 02:35:12 2018
New Revision: 336329

URL: http://llvm.org/viewvc/llvm-project?rev=336329&view=rev
Log:
Fix -Wunused-variable warning. NFCI.

Modified:
    clang-tools-extra/trunk/clangd/Quality.cpp

Modified: clang-tools-extra/trunk/clangd/Quality.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Quality.cpp?rev=336329&r1=336328&r2=336329&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Quality.cpp (original)
+++ clang-tools-extra/trunk/clangd/Quality.cpp Thu Jul  5 02:35:12 2018
@@ -198,7 +198,7 @@ ComputeScope(const NamedDecl *D) {
     if (R->isInjectedClassName())
       DC = DC->getParent();
   // Class constructor should have the same scope as the class.
-  if (const auto *Ctor = llvm::dyn_cast<CXXConstructorDecl>(D))
+  if (isa<CXXConstructorDecl>(D))
     DC = DC->getParent();
   bool InClass = false;
   for (; !DC->isFileContext(); DC = DC->getParent()) {




More information about the cfe-commits mailing list