It's guaranteed to be a CXXMethodDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199795
91177308-0d34-0410-b5e6-
96231b3b80d8
if (!getLangOpts().AccessControl || access == AS_public)
return AR_accessible;
- CXXMethodDecl *method = dyn_cast<CXXMethodDecl>(target->getAsFunction());
+ CXXMethodDecl *method = cast<CXXMethodDecl>(target->getAsFunction());
assert(method->getQualifier());
AccessTarget entity(Context, AccessTarget::Member,