[Lldb-commits] [lldb] r165264 - /lldb/trunk/source/Symbol/ClangASTContext.cpp

Jim Ingham jingham at apple.com
Thu Oct 4 15:22:17 PDT 2012


Author: jingham
Date: Thu Oct  4 17:22:16 2012
New Revision: 165264

URL: http://llvm.org/viewvc/llvm-project?rev=165264&view=rev
Log:
ClangASTContext::GetIndexOfChildWithName - increment the child index we plan to return as we iterate through the ivars.

<rdar://problem/12433299>

Modified:
    lldb/trunk/source/Symbol/ClangASTContext.cpp

Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=165264&r1=165263&r2=165264&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Thu Oct  4 17:22:16 2012
@@ -4771,7 +4771,7 @@
                         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;
                             





More information about the lldb-commits mailing list