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

This commit is contained in:
Simon Pilgrim 2020-05-22 11:59:19 +01:00
parent d1076d729a
commit 733505abf4
1 changed files with 1 additions and 1 deletions

View File

@ -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);