diff options
author | John McCall <rjmccall@apple.com> | 2010-01-23 00:46:32 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-01-23 00:46:32 +0000 |
commit | 92f883177b162928a8e632e4e3b93fafd2b26072 (patch) | |
tree | d276d1c8a80776fc675c0f7cab636c41458a4bc2 /lib/Parse/ParseDeclCXX.cpp | |
parent | 336fd81e04c01ffbce2825b372aeb127c80d4d97 (diff) |
Implement elementary access control.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDeclCXX.cpp')
-rw-r--r-- | lib/Parse/ParseDeclCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseDeclCXX.cpp b/lib/Parse/ParseDeclCXX.cpp index a5ef817d43..efaf8ee327 100644 --- a/lib/Parse/ParseDeclCXX.cpp +++ b/lib/Parse/ParseDeclCXX.cpp @@ -983,7 +983,7 @@ Parser::BaseResult Parser::ParseBaseSpecifier(DeclPtrTy ClassDecl) { // Parse an (optional) access specifier. AccessSpecifier Access = getAccessSpecifierIfPresent(); - if (Access) + if (Access != AS_none) ConsumeToken(); // Parse the 'virtual' keyword (again!), in case it came after the |