[Lldb-commits] [lldb] r181045 - Harden against potential empty nodes in the map
Enrico Granata
egranata at apple.com
Fri May 3 12:07:20 PDT 2013
Author: enrico
Date: Fri May 3 14:07:20 2013
New Revision: 181045
URL: http://llvm.org/viewvc/llvm-project?rev=181045&view=rev
Log:
Harden against potential empty nodes in the map
Modified:
lldb/trunk/source/DataFormatters/LibCxxMap.cpp
Modified: lldb/trunk/source/DataFormatters/LibCxxMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/LibCxxMap.cpp?rev=181045&r1=181044&r2=181045&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/LibCxxMap.cpp (original)
+++ lldb/trunk/source/DataFormatters/LibCxxMap.cpp Fri May 3 14:07:20 2013
@@ -66,6 +66,8 @@ public:
bool
error ()
{
+ if (!m_entry_sp)
+ return true;
return m_entry_sp->GetError().Fail();
}
More information about the lldb-commits
mailing list