From 9d6f7037ba7067b850a2abaf65be0b8d08ff134c Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 19 Feb 2013 23:23:41 +0000 Subject: [PATCH] Fixing a potential crasher where a synthetic value could return itself as its static value llvm-svn: 175574 --- lldb/include/lldb/Core/ValueObjectSyntheticFilter.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h b/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h index 296d44b530c2..35c7d6eb3cd8 100644 --- a/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h +++ b/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h @@ -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 () {