r199795 - Change a dyn_cast from r199794 to a straight cast
Alp Toker
alp at nuanti.com
Tue Jan 21 23:53:08 PST 2014
Author: alp
Date: Wed Jan 22 01:53:08 2014
New Revision: 199795
URL: http://llvm.org/viewvc/llvm-project?rev=199795&view=rev
Log:
Change a dyn_cast from r199794 to a straight cast
It's guaranteed to be a CXXMethodDecl.
Modified:
cfe/trunk/lib/Sema/SemaAccess.cpp
Modified: cfe/trunk/lib/Sema/SemaAccess.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaAccess.cpp?rev=199795&r1=199794&r2=199795&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaAccess.cpp (original)
+++ cfe/trunk/lib/Sema/SemaAccess.cpp Wed Jan 22 01:53:08 2014
@@ -1757,7 +1757,7 @@ Sema::AccessResult Sema::CheckFriendAcce
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,
More information about the cfe-commits
mailing list