Skip to content

Commit

Permalink
[ValueObject] Upstream early exit from swift-lldb. (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-prantl committed Nov 5, 2019
1 parent de5417f commit 3ac6863
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lldb/source/Core/ValueObject.cpp
Expand Up @@ -589,6 +589,10 @@ ValueObjectSP ValueObject::GetChildMemberWithName(ConstString name,

std::vector<uint32_t> child_indexes;
bool omit_empty_base_classes = true;

if (!GetCompilerType().IsValid())
return ValueObjectSP();

const size_t num_child_indexes =
GetCompilerType().GetIndexOfChildMemberWithName(
name.GetCString(), omit_empty_base_classes, child_indexes);
Expand Down

0 comments on commit 3ac6863

Please sign in to comment.