From 3ac6863efbbfa27175588670e3b3715b0351ff4e Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 5 Nov 2019 12:43:00 -0800 Subject: [PATCH] [ValueObject] Upstream early exit from swift-lldb. (NFC) --- lldb/source/Core/ValueObject.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index ecb5a41..0245300 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -589,6 +589,10 @@ ValueObjectSP ValueObject::GetChildMemberWithName(ConstString name, std::vector 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); -- 2.7.4