[Lldb-commits] [lldb] 3ac6863 - [ValueObject] Upstream early exit from swift-lldb. (NFC)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 5 12:44:08 PST 2019


Author: Adrian Prantl
Date: 2019-11-05T12:43:00-08:00
New Revision: 3ac6863efbbfa27175588670e3b3715b0351ff4e

URL: https://github.com/llvm/llvm-project/commit/3ac6863efbbfa27175588670e3b3715b0351ff4e
DIFF: https://github.com/llvm/llvm-project/commit/3ac6863efbbfa27175588670e3b3715b0351ff4e.diff

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

Added: 
    

Modified: 
    lldb/source/Core/ValueObject.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index ecb5a41ea8a0..02453001a87f 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -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);


        


More information about the lldb-commits mailing list