Bug #: 8447030

Fixed an issue with ClangASTContext::GetIndexOfChildMemberWithName() 
where objective C ivars were not being found correctly if they were
the second or higher child.

llvm-svn: 114258
This commit is contained in:
Greg Clayton 2010-09-18 02:11:07 +00:00
parent 112b51e72d
commit 6ba7815115
1 changed files with 1 additions and 1 deletions

View File

@ -2057,7 +2057,7 @@ ClangASTContext::GetIndexOfChildMemberWithName
ObjCInterfaceDecl::ivar_iterator ivar_pos, ivar_end = class_interface_decl->ivar_end();
ObjCInterfaceDecl *superclass_interface_decl = class_interface_decl->getSuperClass();
for (ivar_pos = class_interface_decl->ivar_begin(); ivar_pos != ivar_end; ++ivar_pos)
for (ivar_pos = class_interface_decl->ivar_begin(); ivar_pos != ivar_end; ++ivar_pos, ++child_idx)
{
const ObjCIvarDecl* ivar_decl = *ivar_pos;