[Lldb-commits] [lldb] r165272 - /lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h

Enrico Granata egranata at apple.com
Thu Oct 4 16:17:01 PDT 2012


Author: enrico
Date: Thu Oct  4 18:17:01 2012
New Revision: 165272

URL: http://llvm.org/viewvc/llvm-project?rev=165272&view=rev
Log:
A tweak to the previous commit to ensure that we don't try to use -> on a NULL pointer (should not happen but better be safe than sorry)

Modified:
    lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h

Modified: lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h?rev=165272&r1=165271&r2=165272&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h (original)
+++ lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h Thu Oct  4 18:17:01 2012
@@ -104,7 +104,9 @@
     virtual bool
     ResolveValue (Scalar &scalar)
     {
-        return m_parent->ResolveValue(scalar);
+        if (m_parent)
+            return m_parent->ResolveValue(scalar);
+        return false;
     }
     
 protected:





More information about the lldb-commits mailing list