]> granicus.if.org Git - clang/commitdiff
Change dyn_cast<CXXMethodDecl>(FD) to isa<CXXMethodDecl>(FD) [NFC]
authorMikael Holmen <mikael.holmen@ericsson.com>
Thu, 23 Aug 2018 13:18:27 +0000 (13:18 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Thu, 23 Aug 2018 13:18:27 +0000 (13:18 +0000)
The result of the dyn_cast wasn't used to we can just check isa.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340531 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/RetainSummaryManager.cpp

index e92b81deb97dff14a3155ed04ee12bb52376a961..e67a441a3dcc06643b29304e4b10f13f30e91ed0 100644 (file)
@@ -326,7 +326,7 @@ RetainSummaryManager::generateSummary(const FunctionDecl *FD,
     }
   }
 
-  if (dyn_cast<CXXMethodDecl>(FD)) {
+  if (isa<CXXMethodDecl>(FD)) {
 
     // Stop tracking arguments passed to C++ methods, as those might be
     // wrapping smart pointers.