On second thought, amend the previous patch to pass itself the ValueObject& for the static value instead of just its type

llvm-svn: 248316
This commit is contained in:
Enrico Granata
2015-09-22 19:58:02 +00:00
parent c74275bc4a
commit 7eed48779d
8 changed files with 18 additions and 14 deletions

View File

@@ -211,7 +211,7 @@ ValueObjectDynamicValue::UpdateValue ()
if (class_type_or_name.HasType())
{
m_type_impl = TypeImpl(m_parent->GetCompilerType(),
runtime->FixUpDynamicType(class_type_or_name, m_parent->GetCompilerType()).GetCompilerType());
runtime->FixUpDynamicType(class_type_or_name, *m_parent).GetCompilerType());
}
else
{
@@ -271,7 +271,7 @@ ValueObjectDynamicValue::UpdateValue ()
}
if (runtime)
m_dynamic_type_info = runtime->FixUpDynamicType(m_dynamic_type_info, m_parent->GetCompilerType());
m_dynamic_type_info = runtime->FixUpDynamicType(m_dynamic_type_info, *m_parent);
//m_value.SetContext (Value::eContextTypeClangType, corrected_type);
m_value.SetCompilerType (m_dynamic_type_info.GetCompilerType());