Author: Hans Wennborg
Date: 2019-12-03T08:59:01+01:00
New Revision: b5f295ffcec2fa7402e39eb1262acbd55a7d39f5

URL: 
https://github.com/llvm/llvm-project/commit/b5f295ffcec2fa7402e39eb1262acbd55a7d39f5
DIFF: 
https://github.com/llvm/llvm-project/commit/b5f295ffcec2fa7402e39eb1262acbd55a7d39f5.diff

LOG: AvoidBindCheck.cpp: Fix unused variables warning

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp 
b/clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp
index 06e459b9024d..c9313dbae96a 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;
   }
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to