summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-10-04 22:22:16 +0000
committerJim Ingham <jingham@apple.com>2012-10-04 22:22:16 +0000
commit2f355a7fca2011fdc2cefe595338be26f741b117 (patch)
tree1b1ce8a254bff047933fad38686a0bfbb69eb8e9
parent45bb8855e0ecca4f47e1ca310bc11e2106e226bb (diff)
downloadbcm5719-llvm-2f355a7fca2011fdc2cefe595338be26f741b117.tar.gz
bcm5719-llvm-2f355a7fca2011fdc2cefe595338be26f741b117.zip
ClangASTContext::GetIndexOfChildWithName - increment the child index we plan to return as we iterate through the ivars.
<rdar://problem/12433299> llvm-svn: 165264
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 5929ebb45c8..efd8de72d5d 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -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;
OpenPOWER on IntegriCloud