forked from OSchip/llvm-project
Replace dyn_cast<> with isa<> to fix unused variable warning. NFCI.
This commit is contained in:
parent
d1076d729a
commit
733505abf4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue