[ValueObject] Upstream early exit from swift-lldb. (NFC)
authorAdrian Prantl <aprantl@apple.com>
Tue, 5 Nov 2019 20:43:00 +0000 (12:43 -0800)
committerAdrian Prantl <aprantl@apple.com>
Tue, 5 Nov 2019 20:43:00 +0000 (12:43 -0800)
lldb/source/Core/ValueObject.cpp

index ecb5a41..0245300 100644 (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);