diff options
Diffstat (limited to 'lldb/source/Symbol')
| -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()) |

