[cfe-commits] r99942 - /cfe/trunk/lib/Sema/SemaAccess.cpp
John McCall
rjmccall at apple.com
Tue Mar 30 15:20:00 PDT 2010
Author: rjmccall
Date: Tue Mar 30 17:20:00 2010
New Revision: 99942
URL: http://llvm.org/viewvc/llvm-project?rev=99942&view=rev
Log:
Fix an oversight with access control for address-of-function.
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=99942&r1=99941&r2=99942&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaAccess.cpp (original)
+++ cfe/trunk/lib/Sema/SemaAccess.cpp Tue Mar 30 17:20:00 2010
@@ -910,6 +910,7 @@
Sema::AccessResult Sema::CheckAddressOfMemberAccess(Expr *OvlExpr,
DeclAccessPair Found) {
if (!getLangOptions().AccessControl ||
+ Found.getAccess() == AS_none ||
Found.getAccess() == AS_public)
return AR_accessible;
More information about the cfe-commits
mailing list