diff options
| author | Eugene Leviant <evgeny.leviant@gmail.com> | 2015-11-13 11:00:10 +0000 |
|---|---|---|
| committer | Eugene Leviant <evgeny.leviant@gmail.com> | 2015-11-13 11:00:10 +0000 |
| commit | c1ba9fcb2790e07a478700ce78fb08283839634c (patch) | |
| tree | 6be8b8ba8e93e67de6900a11fd3fbf09075894c3 /lldb/source/Symbol/ClangASTContext.cpp | |
| parent | 2e31ce1ea7ce3a16202bb55130d552b753282a33 (diff) | |
| download | bcm5719-llvm-c1ba9fcb2790e07a478700ce78fb08283839634c.tar.gz bcm5719-llvm-c1ba9fcb2790e07a478700ce78fb08283839634c.zip | |
Fix multiple symbol lookup in the same namespace
llvm-svn: 253028
Diffstat (limited to 'lldb/source/Symbol/ClangASTContext.cpp')
| -rw-r--r-- | lldb/source/Symbol/ClangASTContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index d259c778ae1..6373b1afd3e 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -9186,7 +9186,8 @@ ClangASTContext::DeclContextFindDeclByName(void *opaque_decl_ctx, ConstString na for (auto it = search_queue.find(decl_context); it != search_queue.end(); it++) { - searched.insert(it->second); + if (!searched.insert(it->second).second) + continue; symbol_file->ParseDeclsForContext(CompilerDeclContext(this, it->second)); for (clang::Decl *child : it->second->decls()) |

