diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2015-02-06 22:25:21 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2015-02-06 22:25:21 +0000 |
| commit | 7aa51b7949660007cdf82cd56e16df87703f9319 (patch) | |
| tree | 5e5b6a0774e0d93bb4cfa2f9f83b9c41b38c4448 /contrib/llvm/tools/lldb/source/Core/ValueObjectDynamicValue.cpp | |
| parent | bd9cc051b34cdcd5148e03e92ed404a0587bacff (diff) | |
| parent | 205afe679855a4ce8149cdaa94d3f0868ce796dc (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Core/ValueObjectDynamicValue.cpp')
| -rw-r--r-- | contrib/llvm/tools/lldb/source/Core/ValueObjectDynamicValue.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/contrib/llvm/tools/lldb/source/Core/ValueObjectDynamicValue.cpp b/contrib/llvm/tools/lldb/source/Core/ValueObjectDynamicValue.cpp index a6fad7a9b1fd..1b8ec8083f8f 100644 --- a/contrib/llvm/tools/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/contrib/llvm/tools/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -241,16 +241,7 @@ ValueObjectDynamicValue::UpdateValue () { if (class_type_or_name.HasType()) { - // TypeSP are always generated from debug info - if (!class_type_or_name.HasTypeSP() && class_type_or_name.GetClangASTType().IsRuntimeGeneratedType()) - { - m_type_impl = TypeImpl(m_parent->GetClangType(),FixupTypeAndOrName(class_type_or_name, *m_parent).GetClangASTType()); - class_type_or_name.SetClangASTType(ClangASTType()); - } - else - { - m_type_impl = TypeImpl(FixupTypeAndOrName(class_type_or_name, *m_parent).GetClangASTType()); - } + m_type_impl = TypeImpl(m_parent->GetClangType(),FixupTypeAndOrName(class_type_or_name, *m_parent).GetClangASTType()); } else { @@ -329,7 +320,7 @@ ValueObjectDynamicValue::UpdateValue () m_error = m_value.GetValueAsData (&exe_ctx, m_data, 0, GetModule().get()); if (m_error.Success()) { - if (GetClangType().IsAggregateType ()) + if (!CanProvideValue()) { // this value object represents an aggregate type whose // children have values, but this object does not. So we |
