forked from OSchip/llvm-project
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:
parent
112b51e72d
commit
6ba7815115
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue