r352456 - Remove unused variable to silence compiler warning

Mikael Holmen via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 28 22:53:31 PST 2019


Author: uabelho
Date: Mon Jan 28 22:53:31 2019
New Revision: 352456

URL: http://llvm.org/viewvc/llvm-project?rev=352456&view=rev
Log:
Remove unused variable to silence compiler warning

Modified:
    cfe/trunk/lib/AST/ASTImporter.cpp

Modified: cfe/trunk/lib/AST/ASTImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTImporter.cpp?rev=352456&r1=352455&r2=352456&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTImporter.cpp (original)
+++ cfe/trunk/lib/AST/ASTImporter.cpp Mon Jan 28 22:53:31 2019
@@ -3058,7 +3058,7 @@ ExpectedDecl ASTNodeImporter::VisitFunct
   // overrides (even if they are part of the same redecl chain inside the
   // derived class.)
   if (FoundByLookup) {
-    if (auto *MD = dyn_cast<CXXMethodDecl>(FoundByLookup)) {
+    if (isa<CXXMethodDecl>(FoundByLookup)) {
       if (D->getLexicalDeclContext() == D->getDeclContext()) {
         if (!D->doesThisDeclarationHaveABody())
           return Importer.MapImported(D, FoundByLookup);




More information about the cfe-commits mailing list