projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de5417f
)
[ValueObject] Upstream early exit from swift-lldb. (NFC)
author
Adrian Prantl
<aprantl@apple.com>
Tue, 5 Nov 2019 20:43:00 +0000
(12:43 -0800)
committer
Adrian Prantl
<aprantl@apple.com>
Tue, 5 Nov 2019 20:43:00 +0000
(12:43 -0800)
lldb/source/Core/ValueObject.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Core/ValueObject.cpp
b/lldb/source/Core/ValueObject.cpp
index
ecb5a41
..
0245300
100644
(file)
--- 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);