commit | 63aef96637d90d7bb8e7427caf3c5fd6b492d4ef | [log] [tgz] |
---|---|---|
author | Enrico Granata <egranata@apple.com> | Tue Feb 19 23:23:41 2013 +0000 |
committer | Enrico Granata <egranata@apple.com> | Tue Feb 19 23:23:41 2013 +0000 |
tree | df8bdec709b9793925ef2be1b432d60e14af1517 | |
parent | 9da225f5634046120475ca2af89d08b09e3747a8 [diff] |
Fixing a potential crasher where a synthetic value could return itself as its static value git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@175574 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/lldb/Core/ValueObjectSyntheticFilter.h b/include/lldb/Core/ValueObjectSyntheticFilter.h index 296d44b..35c7d6e 100644 --- a/include/lldb/Core/ValueObjectSyntheticFilter.h +++ b/include/lldb/Core/ValueObjectSyntheticFilter.h
@@ -89,6 +89,15 @@ return false; } + virtual lldb::ValueObjectSP + GetStaticValue () + { + if (m_parent) + return m_parent->GetStaticValue(); + else + return GetSP(); + } + virtual lldb::DynamicValueType GetDynamicValueType () {