diff options
| author | Hans Wennborg <hans@chromium.org> | 2019-12-03 08:59:01 +0100 |
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2019-12-03 08:59:01 +0100 |
| commit | b5f295ffcec2fa7402e39eb1262acbd55a7d39f5 (patch) | |
| tree | 80cdc94cf1154c3f2e34dbe80a8a45113c927bc9 /clang-tools-extra/clang-tidy/modernize | |
| parent | 8e7f60e942ff009de742e20e10ebc09dcdecd5a2 (diff) | |
| download | bcm5719-llvm-b5f295ffcec2fa7402e39eb1262acbd55a7d39f5.tar.gz bcm5719-llvm-b5f295ffcec2fa7402e39eb1262acbd55a7d39f5.zip | |
AvoidBindCheck.cpp: Fix unused variables warning
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize')
| -rw-r--r-- | clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp b/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp index 06e459b9024..c9313dbae96 100644 --- a/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp @@ -473,9 +473,9 @@ getCallableMaterialization(const MatchFinder::MatchResult &Result) { return CMK_Function; if (const auto *DRE = dyn_cast<DeclRefExpr>(NoTemporaries)) { - if (const auto *FD = dyn_cast<FunctionDecl>(DRE->getDecl())) + if (isa<FunctionDecl>(DRE->getDecl())) return CMK_Function; - if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) + if (isa<VarDecl>(DRE->getDecl())) return CMK_VariableRef; } |

