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


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to