diff options
author | Enrico Granata <egranata@apple.com> | 2012-10-04 23:17:01 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-10-04 23:17:01 +0000 |
commit | 4d6cd886f5e6ad05ec5284f19b22457d5c16fe63 (patch) | |
tree | 4b8e1c2fe1fd48595fb7c0b0cc66955b4b9eeada | |
parent | e6f1b76fef7db55bf2129092b819865505c9e051 (diff) | |
download | bcm5719-llvm-4d6cd886f5e6ad05ec5284f19b22457d5c16fe63.tar.gz bcm5719-llvm-4d6cd886f5e6ad05ec5284f19b22457d5c16fe63.zip |
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)
llvm-svn: 165272
-rw-r--r-- | lldb/include/lldb/Core/ValueObjectSyntheticFilter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h b/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h index f1d97ba3563..02fd87a5a62 100644 --- a/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h +++ b/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h @@ -104,7 +104,9 @@ public: virtual bool ResolveValue (Scalar &scalar) { - return m_parent->ResolveValue(scalar); + if (m_parent) + return m_parent->ResolveValue(scalar); + return false; } protected: |