Author: Simon Pilgrim
Date: 2020-05-22T12:05:56+01:00
New Revision: 733505abf471b66458a9eab24521dba9a4b6239e

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

LOG: Replace dyn_cast<> with isa<> to fix unused variable warning. NFCI.

Added: 
    

Modified: 
    clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp 
b/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
index adb6253df965..cb76f576ac34 100644
--- a/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
@@ -114,7 +114,7 @@ bool isUncountedPtr(const Type *T) {
 bool isGetterOfRefCounted(const CXXMethodDecl *M) {
   assert(M);
 
-  if (auto *calleeMethodDecl = dyn_cast<CXXMethodDecl>(M)) {
+  if (isa<CXXMethodDecl>(M)) {
     const CXXRecordDecl *calleeMethodsClass = M->getParent();
     auto className = safeGetName(calleeMethodsClass);
     auto methodName = safeGetName(M);


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

Reply via email to