ClangASTContext::GetIndexOfChildWithName - increment the child index we plan to retur...
authorJim Ingham <jingham@apple.com>
Thu, 4 Oct 2012 22:22:16 +0000 (22:22 +0000)
committerJim Ingham <jingham@apple.com>
Thu, 4 Oct 2012 22:22:16 +0000 (22:22 +0000)
<rdar://problem/12433299>

llvm-svn: 165264

lldb/source/Symbol/ClangASTContext.cpp

index 5929ebb..efd8de7 100644 (file)
@@ -4771,7 +4771,7 @@ ClangASTContext::GetIndexOfChildWithName
                         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;