[ValueObject] Upstream early exit from swift-lldb. (NFC)

This commit is contained in:
Adrian Prantl 2019-11-05 12:43:00 -08:00
parent de5417f81d
commit 3ac6863efb
1 changed files with 4 additions and 0 deletions

View File

@ -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);