From 9aceaa1be2b67f18a461035de9f39a5e8152fc16 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 6 Oct 2014 21:00:30 +0000 Subject: Fix a problem where LLDB was constructing a TypeImpl marking the dynamic type as the static type. Instead use the TypeImpl() constructor correctly llvm-svn: 219142 --- lldb/source/API/SBType.cpp | 2 +- lldb/source/Core/ValueObjectDynamicValue.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source') diff --git a/lldb/source/API/SBType.cpp b/lldb/source/API/SBType.cpp index 54cbdc8a77f..1d521098cab 100644 --- a/lldb/source/API/SBType.cpp +++ b/lldb/source/API/SBType.cpp @@ -324,7 +324,7 @@ uint32_t SBType::GetNumberOfFields () { if (IsValid()) - return m_opaque_sp->GetClangASTType(false).GetNumFields(); + return m_opaque_sp->GetClangASTType(true).GetNumFields(); return 0; } diff --git a/lldb/source/Core/ValueObjectDynamicValue.cpp b/lldb/source/Core/ValueObjectDynamicValue.cpp index a6fad7a9b1f..3481bdedf38 100644 --- a/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -249,7 +249,7 @@ ValueObjectDynamicValue::UpdateValue () } 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 -- cgit v1.2.3