mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user