]> granicus.if.org Git - clang/commitdiff
Remove unused variable to silence compiler warning
authorMikael Holmen <mikael.holmen@ericsson.com>
Tue, 29 Jan 2019 06:53:31 +0000 (06:53 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Tue, 29 Jan 2019 06:53:31 +0000 (06:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352456 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTImporter.cpp

index 68da18aface0ee185e2fe386d76c7dbd92b96094..76407d54415e202c888ca1851cbaf2f05b65969c 100644 (file)
@@ -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<CXXMethodDecl>(FoundByLookup)) {
+    if (isa<CXXMethodDecl>(FoundByLookup)) {
       if (D->getLexicalDeclContext() == D->getDeclContext()) {
         if (!D->doesThisDeclarationHaveABody())
           return Importer.MapImported(D, FoundByLookup);