Rework the way in which ValueObjectChild decides how to update itself; this is a slight refactoring that I need as part of a larger master plan. As such, should be NFC

llvm-svn: 252529
This commit is contained in:
Enrico Granata
2015-11-09 23:07:55 +00:00
parent 2652b75700
commit 99448c6367
5 changed files with 20 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ ValueObjectChild::UpdateValue ()
Value::ValueType value_type = parent->GetValue().GetValueType();
m_value.SetValueType (value_type);
if (parent->GetCompilerType().IsPointerOrReferenceType ())
if (parent->GetCompilerType().ShouldTreatScalarValueAsAddress())
{
lldb::addr_t addr = parent->GetPointerValue ();
m_value.GetScalar() = addr;