diff options
| author | Adrian Prantl <aprantl@apple.com> | 2019-11-05 12:43:00 -0800 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2019-11-05 12:43:00 -0800 |
| commit | 3ac6863efbbfa27175588670e3b3715b0351ff4e (patch) | |
| tree | ef8dc1d07ce7524198a4584ee528250b096a6985 /lldb/source/Core | |
| parent | de5417f81d4e0ca732810e3b5565253b73b9e339 (diff) | |
| download | bcm5719-llvm-3ac6863efbbfa27175588670e3b3715b0351ff4e.tar.gz bcm5719-llvm-3ac6863efbbfa27175588670e3b3715b0351ff4e.zip | |
[ValueObject] Upstream early exit from swift-lldb. (NFC)
Diffstat (limited to 'lldb/source/Core')
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index ecb5a41ea8a..02453001a87 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); |

