diff options
author | Enrico Granata <egranata@apple.com> | 2012-10-03 21:31:35 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-10-03 21:31:35 +0000 |
commit | 83805259e12b5187b310810af46949896e8930a4 (patch) | |
tree | 322a767374957e4fb8b5e0689c9f9a33aae3dc52 /lldb/source/Core/ModuleList.cpp | |
parent | b336c96f1d519f040204beb0924726008eb38a33 (diff) | |
download | bcm5719-llvm-83805259e12b5187b310810af46949896e8930a4.tar.gz bcm5719-llvm-83805259e12b5187b310810af46949896e8930a4.zip |
<rdar://problem/12408181> Fixing a bug where we would try to look for types in a module, and then fail to look for them anywhere else because the same SymbolContext was being passed everywhere
llvm-svn: 165169
Diffstat (limited to 'lldb/source/Core/ModuleList.cpp')
-rw-r--r-- | lldb/source/Core/ModuleList.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp index 13e30f6a146..5adffa1e679 100644 --- a/lldb/source/Core/ModuleList.cpp +++ b/lldb/source/Core/ModuleList.cpp @@ -454,13 +454,14 @@ ModuleList::FindTypes (const SymbolContext& sc, const ConstString &name, bool na if (total_matches < max_matches) { + SymbolContext world_sc; for (pos = m_modules.begin(); pos != end; ++pos) { // Search the module if the module is not equal to the one in the symbol // context "sc". If "sc" contains a empty module shared pointer, then // the comparisong will always be true (valid_module_ptr != NULL). if (sc.module_sp.get() != (*pos).get()) - total_matches += (*pos)->FindTypes (sc, name, name_is_fully_qualified, max_matches, types); + total_matches += (*pos)->FindTypes (world_sc, name, name_is_fully_qualified, max_matches, types); if (total_matches >= max_matches) break; |