Default visbility for instance variables is protected.

Patch by Emerson Murhpy-Hill.

llvm-svn: 50452
This commit is contained in:
Fariborz Jahanian 2008-04-29 23:03:51 +00:00
parent fc3e3ad74d
commit 2dfcec129f
1 changed files with 1 additions and 1 deletions

View File

@ -758,7 +758,7 @@ void Parser::ParseObjCClassInstanceVariables(DeclTy *interfaceDecl,
SourceLocation LBraceLoc = ConsumeBrace(); // the "{" SourceLocation LBraceLoc = ConsumeBrace(); // the "{"
tok::ObjCKeywordKind visibility = tok::objc_private; tok::ObjCKeywordKind visibility = tok::objc_protected;
// While we still have something to read, read the instance variables. // While we still have something to read, read the instance variables.
while (Tok.isNot(tok::r_brace) && Tok.isNot(tok::eof)) { while (Tok.isNot(tok::r_brace) && Tok.isNot(tok::eof)) {
// Each iteration of this loop reads one objc-instance-variable-decl. // Each iteration of this loop reads one objc-instance-variable-decl.