mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
<rdar://problem/12503640> Fixing an issue where the dynamic type of an Objective-C pointer changed but we still reported the one-true-definition for the previous type. This was causing issues where a variable could be reported as being of an entirely different type after an assignment
llvm-svn: 166119
This commit is contained in:
@@ -290,12 +290,14 @@ ValueObjectDynamicValue::UpdateValue ()
|
||||
if (!m_type_sp)
|
||||
{
|
||||
m_type_sp = dynamic_type_sp;
|
||||
ResetCompleteTypeInfo ();
|
||||
}
|
||||
else if (dynamic_type_sp != m_type_sp)
|
||||
{
|
||||
// We are another type, we need to tear down our children...
|
||||
m_type_sp = dynamic_type_sp;
|
||||
SetValueDidChange (true);
|
||||
ResetCompleteTypeInfo ();
|
||||
}
|
||||
|
||||
if (!m_address.IsValid() || m_address != dynamic_address)
|
||||
|
||||
Reference in New Issue
Block a user