diff options
author | Jim Ingham <jingham@apple.com> | 2017-03-21 02:13:50 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2017-03-21 02:13:50 +0000 |
commit | 9a4bce70faf67e635dbc91db7597b308f196f9e0 (patch) | |
tree | 4a76182d57c07103b8c54d1c4d40026e493bf152 /lldb/source/Core/Module.cpp | |
parent | dc205b3db2abcba39d1845fade1bb8d302cfb274 (diff) | |
download | bcm5719-llvm-9a4bce70faf67e635dbc91db7597b308f196f9e0.tar.gz bcm5719-llvm-9a4bce70faf67e635dbc91db7597b308f196f9e0.zip |
FindTypes should find "struct TypeName" as well as "TypeName".
This fixes a bug introduced by r291559. The Module's FindType was
passing the original name not the basename in the case where it didn't
find any separators. I also added a testcase for this.
<rdar://problem/31159173>
llvm-svn: 298331
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r-- | lldb/source/Core/Module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index d2034d6518d..2156cbe26be 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -1032,7 +1032,7 @@ size_t Module::FindTypes( // The "type_name_cstr" will have been modified if we have a valid type // class // prefix (like "struct", "class", "union", "typedef" etc). - FindTypes_Impl(sc, ConstString(type_name_cstr), nullptr, append, + FindTypes_Impl(sc, ConstString(type_basename), nullptr, append, max_matches, searched_symbol_files, typesmap); typesmap.RemoveMismatchedTypes(type_class); num_matches = typesmap.GetSize(); |