diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-01-29 06:53:31 +0000 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-01-29 06:53:31 +0000 |
commit | c1c97aa22d59b1d4e6295a8316728029d59ebe23 (patch) | |
tree | a83f9afec64a9ec8a5672b0790fd730d2466800a /clang/lib | |
parent | b792627ce9b883ad06aa657413335e4030b31f5b (diff) | |
download | bcm5719-llvm-c1c97aa22d59b1d4e6295a8316728029d59ebe23.tar.gz bcm5719-llvm-c1c97aa22d59b1d4e6295a8316728029d59ebe23.zip |
Remove unused variable to silence compiler warning
llvm-svn: 352456
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/ASTImporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp index 68da18aface..76407d54415 100644 --- a/clang/lib/AST/ASTImporter.cpp +++ b/clang/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<CXXMethodDecl>(FoundByLookup)) { + if (isa<CXXMethodDecl>(FoundByLookup)) { if (D->getLexicalDeclContext() == D->getDeclContext()) { if (!D->doesThisDeclarationHaveABody()) return Importer.MapImported(D, FoundByLookup); |