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.

llvm-svn: 340531
This commit is contained in:
Mikael Holmen 2018-08-23 13:18:27 +00:00
parent f8b85a3d6b
commit b4a7546c5c
1 changed files with 1 additions and 1 deletions

View 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.