Fixing a potential crasher where a synthetic value could return itself as its static value

llvm-svn: 175574
This commit is contained in:
Enrico Granata 2013-02-19 23:23:41 +00:00
parent 11b0e05490
commit 9d6f7037ba
1 changed files with 9 additions and 0 deletions

View File

@ -89,6 +89,15 @@ public:
return false;
}
virtual lldb::ValueObjectSP
GetStaticValue ()
{
if (m_parent)
return m_parent->GetStaticValue();
else
return GetSP();
}
virtual lldb::DynamicValueType
GetDynamicValueType ()
{