forked from OSchip/llvm-project
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:
parent
a2794f9f36
commit
2bd4a28664
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue