From: Mikael Holmen Date: Tue, 29 Jan 2019 06:53:31 +0000 (+0000) Subject: Remove unused variable to silence compiler warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66f1c3b808417e41ba65c92a522fa5d8e171c5b9;p=clang Remove unused variable to silence compiler warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352456 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTImporter.cpp b/lib/AST/ASTImporter.cpp index 68da18afac..76407d5441 100644 --- a/lib/AST/ASTImporter.cpp +++ b/lib/AST/ASTImporter.cpp @@ -3058,7 +3058,7 @@ ExpectedDecl ASTNodeImporter::VisitFunctionDecl(FunctionDecl *D) { // overrides (even if they are part of the same redecl chain inside the // derived class.) if (FoundByLookup) { - if (auto *MD = dyn_cast(FoundByLookup)) { + if (isa(FoundByLookup)) { if (D->getLexicalDeclContext() == D->getDeclContext()) { if (!D->doesThisDeclarationHaveABody()) return Importer.MapImported(D, FoundByLookup);