Change a dyn_cast from r199794 to a straight cast

It's guaranteed to be a CXXMethodDecl.

llvm-svn: 199795
This commit is contained in:
Alp Toker 2014-01-22 07:53:08 +00:00
parent a2794f9f36
commit 2bd4a28664
1 changed files with 1 additions and 1 deletions

View File

@ -1757,7 +1757,7 @@ Sema::AccessResult Sema::CheckFriendAccess(NamedDecl *target) {
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,