Fixed a bug where variables' byte sizes would not
respect their Clang types if the variables' values
were represented by DWARF constu values.
<rdar://problem/14636499>
llvm-svn: 192267
diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp
index 38c0d91..3d8b07a 100644
--- a/lldb/source/Core/ValueObjectVariable.cpp
+++ b/lldb/source/Core/ValueObjectVariable.cpp
@@ -156,6 +156,10 @@
{
m_resolved_value = m_value;
m_value.SetContext(Value::eContextTypeVariable, variable);
+
+ ClangASTType clang_type = GetClangType();
+ if (clang_type.IsValid())
+ m_value.SetClangType(clang_type);
Value::ValueType value_type = m_value.GetValueType();