r340531 - Change dyn_cast<CXXMethodDecl>(FD) to isa<CXXMethodDecl>(FD) [NFC]
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 23 06:18:27 PDT 2018
Author: uabelho
Date: Thu Aug 23 06:18:27 2018
New Revision: 340531
URL: http://llvm.org/viewvc/llvm-project?rev=340531&view=rev
Log:
Change dyn_cast<CXXMethodDecl>(FD) to isa<CXXMethodDecl>(FD) [NFC]
The result of the dyn_cast wasn't used to we can just check isa.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp?rev=340531&r1=340530&r2=340531&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp Thu Aug 23 06:18:27 2018
@@ -326,7 +326,7 @@ RetainSummaryManager::generateSummary(co
}
}
- if (dyn_cast<CXXMethodDecl>(FD)) {
+ if (isa<CXXMethodDecl>(FD)) {
// Stop tracking arguments passed to C++ methods, as those might be
// wrapping smart pointers.
More information about the cfe-commits
mailing list