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 ()
     {