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); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits