diff options
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r-- | lldb/source/API/SBTarget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 82da45a3225..0367d65c9fb 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -918,9 +918,9 @@ SBTarget::FindTypes (const char* type) for (size_t idx = 0; idx < num_matches; idx++) { - TypeSP sp_at_idx = type_list.GetTypeAtIndex(idx); - - retval.AppendType(SBType(sp_at_idx)); + TypeSP type_sp (type_list.GetTypeAtIndex(idx)); + if (type_sp) + retval.Append(SBType(type_sp)); } } return retval; |